Sha256: fb86428db82103a003d7294996a7e68493b7f72361729fc759659a446a6cd80e

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

Stored size: 428 Bytes

Contents

require_relative 'spec_helper'

describe Kanpachi::Section do
  subject do
    Kanpachi::Section.new('Posts')
  end

  it 'initialized with the name' do
    subject.name.must_equal 'Posts'
  end

  it 'initialized with a routes array' do
    subject.routes.must_equal []
  end

  it 'has a description accessor' do
    subject.description = 'List all the posts'
    subject.description.must_equal 'List all the posts'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kanpachi-0.0.7 spec/section_spec.rb
kanpachi-0.0.6 spec/section_spec.rb
kanpachi-0.0.5 spec/section_spec.rb
kanpachi-0.0.4 spec/section_spec.rb
kanpachi-0.0.3 spec/section_spec.rb
kanpachi-0.0.2 spec/section_spec.rb
kanpachi-0.0.1 spec/section_spec.rb