Created
February 28, 2018 18:55
-
-
Save workmad3/1bcbc3b98cf87a0613983edb75d54a6e 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
RSpec.describe SomeHelper do | |
let(:helper_class) do | |
Class.new do | |
attr_reader :request | |
include SomeHelper | |
def initialize(request) | |
@request = request | |
end | |
end | |
end | |
let(:request) { double("request", GET: { "blah" => "blah" }) } | |
subject { helper_class.new(request) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment