I'm trying to create a double but I keep getting this error:
undefined method `double' for #<Class:0x007fa48c234320> (NoMethodError)
I suspect the problem has got to do with my spec helper so I'm adding my spec helper below:
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'webmock/rspec'
include WebMock::API
include WebMock::Matchers
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
end
block
before theit
block. – tommi