Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created February 28, 2018 18:55
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 workmad3/1bcbc3b98cf87a0613983edb75d54a6e to your computer and use it in GitHub Desktop.
Save workmad3/1bcbc3b98cf87a0613983edb75d54a6e to your computer and use it in GitHub Desktop.
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