This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scenario: Create a journal | |
| Given a user "John" with password "xyz" | |
| When I go to the new journal path | |
| And I fill in "title" with "New Journal" | |
| And I fill in "cover" with "cover note" | |
| When I click "Create Journal" | |
| Then I should be on the dashboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe Squirrel do | |
| let(:squirrel){Squirrel.new} | |
| it "becomes full after eating nuts" do | |
| expect {squirrel.eat!}.to change{squirrel.hungry?}.from(true).to(false) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe Squirrel do | |
| let(:squirrel){Squirrel.new} | |
| it "becomes full after eating nuts" do | |
| squirrel.should be_hungry | |
| squirrel.eat :nuts | |
| squirrel.should_not be_hungry | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe Robot do | |
| let(:robot) {Robot.new(name: "Robbie")} | |
| subject {robot} | |
| it "should be a robot" do | |
| robot.name.should == "Robbie" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe Robot do | |
| subject {Robot.new(name: "Robbie")} | |
| it "should be a robot" do | |
| subject.name.should == "Robbie" | |
| end | |
| end |
NewerOlder