Created
May 16, 2014 01:48
-
-
Save s0enke/3e3014781e15428573f7 to your computer and use it in GitHub Desktop.
trying to merge a `let` from included context
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
require 'rspec' | |
shared_context 'test' do | |
let(:something) {['something']} | |
end | |
describe 'something' do | |
include_context 'test' | |
let(:something) { super().merge(['another']) } | |
it 'should merge something' do | |
something.should == ['something', 'another'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
leads to: