Sha256: c88116320d736b164d797df2a1c5ac98b0771b5c107415bde5a5bf9f21d67723
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
require 'spec_helper' describe Split::EncapsulatedHelper do include Split::EncapsulatedHelper before do @persistence_adapter = Split.configuration.persistence Split.configuration.persistence = Hash end after do Split.configuration.persistence = @persistence_adapter 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
split-1.0.0 | spec/encapsulated_helper_spec.rb |
split-0.8.0 | spec/encapsulated_helper_spec.rb |