Skip to content

Instantly share code, notes, and snippets.

@Roman2K
Last active August 29, 2015 14:11
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 Roman2K/c72060a19161ae077b78 to your computer and use it in GitHub Desktop.
Save Roman2K/c72060a19161ae077b78 to your computer and use it in GitHub Desktop.
describe TestMe do
describe '#initialize' do
subject { test_me.value }
context "default value" do
let(:test_me) { TestMe.new }
it { is_expected.to be_nil }
end
context "value passed as arg" do
let(:test_me) { TestMe.new(3) }
it { is_expected.to eq 3 }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment