Sha256: c3675ac56d243f7549ba01963e852233118bceb319838bd0e847c7dd4cad25fa

Contents?: true

Size: 610 Bytes

Versions: 6

Compression:

Stored size: 610 Bytes

Contents

require 'spec_helper'

describe Specjour::Manager do
  describe "#available_for?" do
    it "is available for all projects by default" do
      subject.available_for?(rand.to_s).should be_true
    end

    it "is available for one project" do
      manager = Specjour::Manager.new :registered_projects => %w(one)
      manager.available_for?('one').should be_true
    end

    it "is available for many projects" do
      manager = Specjour::Manager.new :registered_projects => %w(one two)
      manager.available_for?('one').should be_true
      manager.available_for?('two').should be_true
    end
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
relex-specjour-0.2.7 spec/manager_spec.rb
JonathanTron-specjour-0.2.5.1 spec/manager_spec.rb
relex-specjour-0.2.6 spec/manager_spec.rb
specjour-0.2.5 spec/manager_spec.rb
specjour-0.2.4 spec/manager_spec.rb
specjour-0.2.3 spec/manager_spec.rb