Created
February 17, 2014 14:03
-
-
Save Electron-libre/9051119 to your computer and use it in GitHub Desktop.
This Rspec Test is funny daer, hem .. read
This file contains hidden or 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 "link_with" do | |
let (:mirror) {create(:relation_kind, label: 'mirror')} | |
let (:rorrim) {create(:relation_kind, label: 'rorrim')} | |
it 'link relation kind both ways' do | |
mirror.link_with(rorrim) | |
expect(mirror.mirror_relation_kind).to eql rorrim | |
expect(rorrim.mirror_relation_kind).to eql mirror | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment