Sha256: 7d55038eecbce66cbb5680a1aca034528df46fb3a79e8d25da2bbcb656494cf2

Contents?: true

Size: 256 Bytes

Versions: 9

Compression:

Stored size: 256 Bytes

Contents

require 'spec_helper'

describe RailsSettingsUi::ValueTypes::Symbol do
  describe "#cast" do
    it "should cast to symbol" do
      boolean_type = RailsSettingsUi::ValueTypes::Symbol.new("foo")
      expect(boolean_type.cast).to eq(:foo)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails-settings-ui-0.5.0 spec/lib/rails-settings-ui/value_types/symbol_spec.rb
rails-settings-ui-0.4.0 spec/lib/rails-settings-ui/value_types/symbol_spec.rb
rails-settings-ui-0.3.2 spec/lib/rails-settings-ui/value_types/symbol_spec.rb
rails-settings-ui-0.3.1 spec/lib/rails-settings-ui/value_types/symbol_spec.rb
rails-settings-ui-0.2.1 spec/lib/rails-settings-ui/value_types/symbol_spec.rb
rails-settings-ui-0.3.0 spec/lib/rails-settings-ui/value_types/symbol_spec.rb
rails-settings-ui-0.2.0 spec/lib/rails-settings-ui/value_types/symbol_spec.rb
rails-settings-ui-0.1.1 spec/lib/rails-settings-ui/value_types/symbol_spec.rb
rails-settings-ui-0.1.0 spec/lib/rails-settings-ui/value_types/symbol_spec.rb