Skip to content

Instantly share code, notes, and snippets.

@purbon
Last active October 14, 2015 14:49
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 purbon/9919840eb858f632857d to your computer and use it in GitHub Desktop.
Save purbon/9919840eb858f632857d to your computer and use it in GitHub Desktop.
rspec test example.
describe "foo" do
subject { described_class.new(options) }
let(:var) { "zzzz"}
before(:each) do
# do something
end
context "when bar" do
it "is sleeping" do
expect(var).to eq("zzzz")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment