```ruby
require 'swt_shoes/spec_helper'

describe Shoes::Swt::Progress do
  let(:text) { "TEXT" }
  let(:dsl) { double('dsl').as_null_object }
  let(:parent) { double('parent') }
  let(:real) { double('real').as_null_object }

  subject { Shoes::Swt::Progress.new dsl, parent }

  before :each do
    parent.stub(:real)
    ::Swt::Widgets::ProgressBar.stub(:new) { real }
  end

  it_behaves_like "movable element"

  it "should have a method called fraction=" do
    subject.should respond_to :fraction=
  end

  it "should multiply the value by 100 when calling real.selection" do
    real.should_receive(:selection=).and_return(55)
    subject.fraction = 0.55
  end

  it "should round up correctly" do
    real.should_receive(:selection=).and_return(100)
    subject.fraction = 0.999
  end
end
```

Fix tests by adding disposed? => false to real stub in progress bar test
user
```ruby
require 'swt_shoes/spec_helper'

describe Shoes::Swt::Progress do
  let(:text) { "TEXT" }
  let(:dsl) { double('dsl').as_null_object }
  let(:parent) { double('parent') }
  let(:real) { double('real', :disposed? => false).as_null_object }

  subject { Shoes::Swt::Progress.new dsl, parent }

  before :each do
    parent.stub(:real)
    ::Swt::Widgets::ProgressBar.stub(:new) { real }
  end

  it_behaves_like "movable element"

  it "should have a method called fraction=" do
    subject.should respond_to :fraction=
  end

  it "should multiply the value by 100 when calling real.selection" do
    real.should_receive(:selection=).and_return(55)
    subject.fraction = 0.55
  end

  it "should round up correctly" do
    real.should_receive(:selection=).and_return(100)
    subject.fraction = 0.999
  end
end
```
assistant