Sha256: 8d467080df32c9a9a2cf2afa6c99f8d142a45050922e64613123e20778df2b1a

Contents?: true

Size: 704 Bytes

Versions: 7

Compression:

Stored size: 704 Bytes

Contents

require_relative '../../spec_helper'

# Load the class under test
require_relative '../../../lib/rley/syntax/terminal'

module Rley # Open this namespace to avoid module qualifier prefixes
  module Syntax # Open this namespace to avoid module qualifier prefixes
    describe Terminal do
      let(:sample_name) { 'noun' }
      subject { Terminal.new(sample_name) }

      context 'Initialization:' do
        it 'should be created with a name' do
          expect { Terminal.new('noun') }.not_to raise_error
        end

        it 'should know its name' do
          expect(subject.name).to eq(sample_name)
        end
      end # context

    end # describe
  end # module
end # module

# End of file

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rley-0.0.11 spec/rley/syntax/terminal_spec.rb
rley-0.0.10 spec/rley/syntax/terminal_spec.rb
rley-0.0.09 spec/rley/syntax/terminal_spec.rb
rley-0.0.08 spec/rley/syntax/terminal_spec.rb
rley-0.0.07 spec/rley/syntax/terminal_spec.rb
rley-0.0.06 spec/rley/syntax/terminal_spec.rb
rley-0.0.05 spec/rley/syntax/terminal_spec.rb