diff options
Diffstat (limited to 'test/edit_objects.rb')
-rw-r--r-- | test/edit_objects.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/edit_objects.rb b/test/edit_objects.rb index e6e8d71..2b9d92a 100644 --- a/test/edit_objects.rb +++ b/test/edit_objects.rb @@ -9,20 +9,20 @@ class FeatureRestTest < MiniTest::Test f = OpenTox::Feature.new f.title = "first" f.description = "first test description" - f.put + f.save # get object to compare first - f2 = OpenTox::Feature.find f.uri + f2 = OpenTox::Feature.find f.id assert_equal f.title, f2.title assert_equal f.description, f2.description # edit object and PUT back f2.title = "second" f2.description = f.description.reverse - f2.put + f2.save # get object to compare again - f3 = OpenTox::Feature.find f.uri + f3 = OpenTox::Feature.find f.id refute_equal f.title, f3.title refute_equal f.description, f3.description end |