Sha256: 267e6a9ff3aad3b48f27e3601ddf9767eae6b9671bc1a7d73961af361fb4fa09

Contents?: true

Size: 704 Bytes

Versions: 16

Compression:

Stored size: 704 Bytes

Contents

require 'spec_helper'

describe New do
  it 'should return a version' do
    expect(New::VERSION).to match /[0-9]+.[0-9]+.[0-9]+/
  end

  it 'should return an array of available tasks' do
    expect(New.tasks).to match_array [:foo_task, :custom_bar_task]
    expect(New.default_tasks).to match_array [:foo_task, :custom_bar_task]
    expect(New.custom_tasks).to match_array [:custom_bar_task]
  end

  it 'should return an array of available templates' do
    expect(New.templates).to match_array [:foo_template, :custom_bar_template]
    expect(New.default_templates).to match_array [:foo_template, :custom_bar_template]
    expect(New.custom_templates).to match_array [:custom_bar_template]
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
new-0.1.1 spec/lib/new_spec.rb
new-0.0.15 spec/lib/new_spec.rb
new-0.0.14 spec/lib/new_spec.rb
new-0.0.13 spec/lib/new_spec.rb
new-0.0.12 spec/lib/new_spec.rb
new-0.0.11 spec/lib/new_spec.rb
new-0.0.10 spec/lib/new_spec.rb
new-0.0.9 spec/lib/new_spec.rb
new-0.0.8 spec/lib/new_spec.rb
new-0.0.7 spec/lib/new_spec.rb
new-0.0.6 spec/lib/new_spec.rb
new-0.0.5 spec/lib/new_spec.rb
new-0.0.4 spec/lib/new_spec.rb
new-0.0.3 spec/lib/new_spec.rb
new-0.0.2 spec/lib/new_spec.rb
new-0.0.0 spec/lib/new_spec.rb