Sha256: 0a3a13b35570f8106b279657003daffe53b1427cb2b63cee8c340e4f9541c768
Contents?: true
Size: 555 Bytes
Versions: 1
Compression:
Stored size: 555 Bytes
Contents
require 'spec/spec_helper' require 'rubygems' require 'rake' describe "Taza Tasks" do before :all do @file_name ="./lib/taza/tasks.rb" @rake = Rake::Application.new Rake.application = @rake end after :all do Rake.application = nil end it "should create rake spec tasks for all sites" do Dir.expects(:glob).with('./spec/functional/*/').returns(['./spec/functional/foo/']) load @file_name tasks.include?("spec:functional:foo").should be_true end def tasks @rake.tasks.collect{|task| task.name } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
taza-0.8.0 | spec/taza_tasks_spec.rb |