Skip to content

Instantly share code, notes, and snippets.

@purbon
Last active October 14, 2015 14:49
Embed
What would you like to do?
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