Sha256: 9fb5f6da6bb31854846b6fb4ce4bc948c6e9bce35e68ea406d0913f708fafdca

Contents?: true

Size: 381 Bytes

Versions: 19

Compression:

Stored size: 381 Bytes

Contents

require 'spec_helper'
module Finitio
  describe Attribute, "to_name" do

    subject{ attr.to_name }

    context 'when required' do
      let(:attr){ Attribute.new(:red, intType) }

      it{ should eq("red: intType") }
    end

    context 'when not required' do
      let(:attr){ Attribute.new(:red, intType, false) }

      it{ should eq("red :? intType") }
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
finitio-0.12.0 spec/attribute/test_to_name.rb
finitio-0.11.4 spec/attribute/test_to_name.rb
finitio-0.11.3 spec/attribute/test_to_name.rb
finitio-0.11.2 spec/attribute/test_to_name.rb
finitio-0.11.1 spec/attribute/test_to_name.rb
finitio-0.10.0 spec/attribute/test_to_name.rb
finitio-0.9.1 spec/attribute/test_to_name.rb
finitio-0.9.0 spec/attribute/test_to_name.rb
finitio-0.8.0 spec/attribute/test_to_name.rb
finitio-0.7.0 spec/attribute/test_to_name.rb
finitio-0.7.0.pre.rc4 spec/attribute/test_to_name.rb
finitio-0.7.0.pre.rc3 spec/attribute/test_to_name.rb
finitio-0.7.0.pre.rc2 spec/attribute/test_to_name.rb
finitio-0.7.0.pre.rc1 spec/attribute/test_to_name.rb
finitio-0.6.1 spec/attribute/test_to_name.rb
finitio-0.6.0 spec/attribute/test_to_name.rb
finitio-0.5.2 spec/attribute/test_to_name.rb
finitio-0.5.1 spec/attribute/test_to_name.rb
finitio-0.5.0 spec/attribute/test_to_name.rb