Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make the specs pass

  • Loading branch information...
commit 97962fee8e540d600a075ddcf89ac036f836da06 1 parent 8063f3d
Chris Eberly authored
View
6 features/algebra.feature
@@ -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
View
2  features/steps/model_steps.rb
@@ -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
4 spec/attributes_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.