Skip to content

Instantly share code, notes, and snippets.

@Electron-libre
Created February 17, 2014 14:03
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 Electron-libre/9051119 to your computer and use it in GitHub Desktop.
Save Electron-libre/9051119 to your computer and use it in GitHub Desktop.
This Rspec Test is funny daer, hem .. read
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