Permalink
Browse files

make the specs pass

  • Loading branch information...
1 parent 8063f3d commit 97962fee8e540d600a075ddcf89ac036f836da06 Chris Eberly committed Jun 22, 2011
Showing with 6 additions and 6 deletions.
  1. +4 −2 features/algebra.feature
  2. +0 −2 features/steps/model_steps.rb
  3. +2 −2 spec/attributes_spec.rb
View
@@ -30,11 +30,12 @@ Feature: Perform relational algebra
"""
Then the output should contain:
"""
- SELECT * FROM `users`
+ SELECT * FROM `users`
---
John,Smith
Mary,Smith
---
+
"""
Scenario: Perform a restriction
@@ -67,10 +68,11 @@ Feature: Perform relational algebra
"""
Then the output should contain:
"""
- SELECT * FROM `users` WHERE `users`.`first_name` = 'John'
+ SELECT * FROM `users` WHERE `users`.`first_name` = 'John'
---
John,Smith
---
+
"""
Scenario: Perform an inner join
@@ -5,9 +5,7 @@
Orel.recreate_database!
Orel.create_tables!
#{string}
- puts "done running code"
EOF
When %{I run `ruby -I ../lib runner.rb`}
- Then %{the output should contain:}, "done running code"
end
View
@@ -90,7 +90,7 @@
end
its(:changed?) { should be_true }
its(:changed) { should == [:name] }
- its(:changes) { should == { :name => [nil, 'Bob'] } }
+ its(:changes) { should == { "name" => [nil, 'Bob'] } }
its(:previous_changes) { should be_empty }
its(:changed_attributes) { should == { :name => nil } }
end
@@ -101,7 +101,7 @@
end
its(:changed?) { should be_true }
its(:changed) { should == [:name] }
- its(:changes) { should == { :name => ['John', 'Bob'] } }
+ its(:changes) { should == { "name" => ['John', 'Bob'] } }
its(:previous_changes) { should be_empty }
its(:changed_attributes) { should == { :name => 'John' } }
end

0 comments on commit 97962fe

Please sign in to comment.