Sha256: 4f265eec5b0d2e4b0bdcfafc3fcb268a04be1079dce7ec997db8a363fb152f72

Contents?: true

Size: 538 Bytes

Versions: 52

Compression:

Stored size: 538 Bytes

Contents

require "spec_helper"


describe "The Configuration DSL" do
  let(:briefcase) { Brief.testcase }

  it "can create methods on our models" do
    expect(briefcase.features.first.defined_helper_method).to eq(true)
  end

  it "treats actions as available commands" do
    expect(Brief::Epic.defined_actions).to include(:custom_action)
  end

  it "doesnt treat helpers as available commands" do
    expect(Brief::Epic.defined_helper_methods).to include(:features)
    expect(Brief::Epic.defined_actions).not_to include(:features)
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
brief-1.17.14 spec/lib/brief/dsl_spec.rb
brief-1.17.13 spec/lib/brief/dsl_spec.rb
brief-1.17.12 spec/lib/brief/dsl_spec.rb
brief-1.17.11 spec/lib/brief/dsl_spec.rb
brief-1.17.10 spec/lib/brief/dsl_spec.rb
brief-1.17.9 spec/lib/brief/dsl_spec.rb
brief-1.17.8 spec/lib/brief/dsl_spec.rb
brief-1.17.7 spec/lib/brief/dsl_spec.rb
brief-1.17.5 spec/lib/brief/dsl_spec.rb
brief-1.17.4 spec/lib/brief/dsl_spec.rb
brief-1.17.3 spec/lib/brief/dsl_spec.rb
brief-1.17.2 spec/lib/brief/dsl_spec.rb
brief-1.17.1 spec/lib/brief/dsl_spec.rb
brief-1.17.0 spec/lib/brief/dsl_spec.rb
brief-1.16.2 spec/lib/brief/dsl_spec.rb
brief-1.16.1 spec/lib/brief/dsl_spec.rb
brief-1.16.0 spec/lib/brief/dsl_spec.rb
brief-1.15.5 spec/lib/brief/dsl_spec.rb
brief-1.15.4 spec/lib/brief/dsl_spec.rb
brief-1.15.3 spec/lib/brief/dsl_spec.rb