Sha256: 18f1a43ec5cf0017fc8c75c887fa9c5323f98df599805f885d968fe1ddf5771c
Contents?: true
Size: 498 Bytes
Versions: 6
Compression:
Stored size: 498 Bytes
Contents
require 'spec_helper' describe Split::EncapsulatedHelper do include Split::EncapsulatedHelper before do allow_any_instance_of(Split::EncapsulatedHelper::ContextShim).to receive(:ab_user) .and_return({}) end def params raise NoMethodError, 'This method is not really defined' end describe "ab_test" do it "should not raise an error when params raises an error" do expect(lambda { ab_test('link_color', 'blue', 'red') }).not_to raise_error end end end
Version data entries
6 entries across 6 versions & 1 rubygems