Last active
August 29, 2015 14:11
-
-
Save Roman2K/c72060a19161ae077b78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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