Skip to content

Instantly share code, notes, and snippets.

@Roman2K Roman2K/init_spec.rb
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.