Created
May 28, 2013 17:41
-
-
Save Ptico/5664588 to your computer and use it in GitHub Desktop.
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
| require 'spec_helper' | |
| describe Aequitas::Violation, '#resource' do | |
| subject { object.resource } | |
| let(:object) { described_class.new(rule, resource) } | |
| let(:rule) { mock('Rule') } | |
| let(:resource) { mock('Resource') } | |
| it { should equal(resource) } | |
| end |
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
| require 'spec_helper' | |
| describe Aequitas::Violation, '#resource' do | |
| subject { object.resource } | |
| let(:object) { described_class.new(rule, resource) } | |
| let(:rule) { mock('Rule') } | |
| let(:resource) { mock('Resource') } | |
| it { expect(subject).to equal(resource) } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment