Sha256: 70d64d697bef8299f131c5e47e4d340b3efe9227f00c45f246239c3a3653ad5d

Contents?: true

Size: 696 Bytes

Versions: 9

Compression:

Stored size: 696 Bytes

Contents

require 'spec_helper'
require 'rake'

describe Bueller::Tasks do
  let(:tasks) do
    Dir.chdir(File.expand_path('../fixtures/bar', File.dirname(__FILE__))) do
      Bueller::Tasks.new
    end
  end

  after :each do
    Rake::Task.clear
  end

  describe '#initialize' do
    it 'should not eagerly initialize Bueller' do
      tasks.instance_variable_defined?(:@bueller).should be_false
    end
    it 'should set self as the application-wide bueller tasks' do
      tasks.should == Rake.application.bueller_tasks
    end
  end
  describe '#bueller' do
    it 'should initailize Bueller' do
      tasks.bueller
      tasks.instance_variable_defined?(:@bueller).should be_true
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bueller-0.0.9 spec/bueller/tasks_spec.rb
bueller-0.0.8 spec/bueller/tasks_spec.rb
bueller-0.0.7 spec/bueller/tasks_spec.rb
bueller-0.0.6 spec/bueller/tasks_spec.rb
bueller-0.0.5 spec/bueller/tasks_spec.rb
bueller-0.0.4 spec/bueller/tasks_spec.rb
bueller-0.0.3 spec/bueller/tasks_spec.rb
bueller-0.0.2 spec/bueller/tasks_spec.rb
bueller-0.0.1 spec/bueller/tasks_spec.rb