test/unit/stored_responses_tests.rb in and-son-0.4.1 vs test/unit/stored_responses_tests.rb in and-son-0.5.0
- old
+ new
@@ -8,11 +8,11 @@
setup do
@responses = AndSon::StoredResponses.new
end
subject{ @responses }
- should have_instance_methods :add, :remove, :find
+ should have_imeths :add, :remove, :find
end
class AddTest < UnitTests
desc "add"
@@ -37,13 +37,13 @@
should "default the response as a 200 when only given response data" do
subject.add('test'){ true }
response = subject.find('test').protocol_response
- assert_equal 200, response.code
- assert_equal nil, response.status.message
- assert_equal true, response.data
+ assert_equal 200, response.code
+ assert_equal nil, response.status.message
+ assert_equal true, response.data
end
end
class FindTest < UnitTests
@@ -81,10 +81,10 @@
should "remove responses given a name and optional params" do
subject.remove('test', { 'id' => 1 })
assert_nil subject.find('test', { 'id' => 1 })
subject.remove('test')
- assert_nil subject.find('test')
+ assert_nil subject.find('test')
end
end
end