Sha256: 568c130c479f5fd626b86088815fd830b6d6601e03fbd005172e5eb2d026319f

Contents?: true

Size: 610 Bytes

Versions: 26

Compression:

Stored size: 610 Bytes

Contents

require 'spec_helper'

describe Betterdocs::Dsl::Controller::Action::Param do
  let :param do
    described_class.new('test') do
      value 666
    end
  end

  it 'has a name' do
    expect(param.name).to eq 'test'
  end

  it 'has a value' do
    expect(param.value).to eq 666
  end

  it 'has a required setting' do
    expect(param.required).to eq true
  end

  it 'has a description' do
    expect(param.description).to eq 'TODO'
  end

  it 'has a use_in_url setting' do
    expect(param.use_in_url).to eq true
  end

  it 'can be displayed as a string' do
    expect(param.to_s).to eq '666'
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
betterdocs-0.13.0 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.12.5 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.12.4 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.12.3 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.12.2 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.12.1 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.12.0 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.11.0 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.10.0 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.9.2 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.9.1 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.9.0 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.8.1 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.8.0 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.7.1 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.7.0 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.6.8 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.6.7 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.6.6 spec/betterdocs/dsl/controller/action/param_spec.rb
betterdocs-0.6.5 spec/betterdocs/dsl/controller/action/param_spec.rb