Sha256: 53ba9aa85777d7e22197d04ed2fc9c2362e08575906f0eb96b7a74c7896ce5a2
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 Bytes
Contents
require 'test_helper' class FeatureTest < ActiveSupport::TestCase attr_accessor :beta setup do self.beta = CanaryLabs::Feature.new( :can_opt_in, 'You can opt your company in to betas.', CanaryLabs::Resolvers::Percentage.new(0.1, :can_opt_in) ) end def test_beta_has_name assert_equal :can_opt_in, beta.name end def test_beta_has_description assert_equal 'You can opt your company in to canary_labs', beta.desc end def test_beta_has_resolver assert beta.resolver.is_a? CanaryLabs::Resolvers::Percentage end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
canary_labs-0.4.0 | test/feature_test.rb |
canary_labs-0.3.0 | test/feature_test.rb |
canary_labs-0.2.0 | test/beta_test.rb |