spec/support/shared_examples/api/helpers/status_helper.rb in groupdocs-0.2.11 vs spec/support/shared_examples/api/helpers/status_helper.rb in groupdocs-0.3.0
- old
+ new
@@ -2,11 +2,11 @@
it { should respond_to(:status) }
it { should respond_to(:status=) }
describe '#status' do
it 'returns converted to human-readable format status' do
- subject.should_receive(:parse_status).with(0).and_return(:pending)
- subject.status = 0
- subject.status.should == :pending
+ subject.should_receive(:parse_status).with('InProgress').and_return(:in_progress)
+ subject.status = 'InProgress'
+ subject.status.should == :in_progress
end
end
end