Sha256: 9e237e856489c9e3addfaf620e0ac2d57171818a1554a52ac37c5afd5d53701c

Contents?: true

Size: 614 Bytes

Versions: 5

Compression:

Stored size: 614 Bytes

Contents

require 'spec_helper'

describe Specjour::Manager do
  describe "#available_for?" do
    it "isn't available for all projects by default" do
      subject.available_for?(rand.to_s).should be_false
    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

5 entries across 5 versions & 1 rubygems

Version Path
specjour-0.3.0.rc5 spec/specjour/manager_spec.rb
specjour-0.3.0.rc4 spec/specjour/manager_spec.rb
specjour-0.3.0.rc3 spec/specjour/manager_spec.rb
specjour-0.3.0.rc2 spec/specjour/manager_spec.rb
specjour-0.3.0.rc1 spec/specjour/manager_spec.rb