Skip to content

Instantly share code, notes, and snippets.

@novohispano
Last active July 8, 2020 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save novohispano/9358e7d2686086c97c66f53a0760277f to your computer and use it in GitHub Desktop.
Save novohispano/9358e7d2686086c97c66f53a0760277f to your computer and use it in GitHub Desktop.
describe Taija do
context "when Taija sleeps" do
before(:all) do
@taija = Taija.new
@taija.sleeps = true
@taija.save
end
it "forgets to wake up" do
expect(@taija.wake_up).to eql false
end
it "asks questions about cookies" do
expect(@taija.ask_cookie_question).to eql true
end
it "works hard in the afternoon" do
expect(@taija.works_hard).to eql true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment