Created
October 1, 2015 23:12
-
-
Save dividedmind/1a728482e6f82fc56f9f 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 "Foo" do | |
before do | |
allow_any_instance # ... user thing | |
allow_any_instance_of(Event).to receive(:resource_visible) { resource_visible } | |
end | |
let(:perform!) { get "etc" } | |
context "with an event invisible to both" do | |
let(:resource_visible) { true } | |
it "returns 404" do | |
perform! | |
expect(response) # ... | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment