Sha256: dffac757c12d96cff661e1ae55337dfa96128d0f5c0cf4cd68495a4e85aa84e3

Contents?: true

Size: 486 Bytes

Versions: 8

Compression:

Stored size: 486 Bytes

Contents

require File.expand_path("../../test_helper", __FILE__)

describe Flipflop::GroupDefinition do
  describe "with defaults" do
    subject do
      Flipflop::GroupDefinition.new(:my_key)
    end

    it "should have specified key" do
      assert_equal :my_key, subject.key
    end

    it "should have name derived from key" do
      assert_equal "my_key", subject.name
    end

    it "should have title derived from key" do
      assert_equal "My key", subject.title
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
flipflop-2.8.0 test/unit/group_definition_test.rb
flipflop-2.7.1 test/unit/group_definition_test.rb
flipflop-2.7.0 test/unit/group_definition_test.rb
flipflop-2.6.0 test/unit/group_definition_test.rb
flipflop-2.5.0 test/unit/group_definition_test.rb
flipflop-2.4.0 test/unit/group_definition_test.rb
flipflop-2.3.1 test/unit/group_definition_test.rb
flipflop-2.3.0 test/unit/group_definition_test.rb