Sha256: b30d63969ec7636d7a3092270a344bbdd52a381085a232f5c4a70b2d88299b16

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

require 'spec_helper'

describe Heidi do
  before(:all) do
    fake_me_a_heidi
  end

  after(:all) do
    FileUtils.remove_entry_secure @fake
  end

  it "should gather projects on load" do
    @heidi.projects.should be_kind_of(Array)
    @heidi.projects.count.should == 1
  end

  it "should return projects" do
    @heidi.projects.first.should be_kind_of(Heidi::Project)
  end

  it "should respond to [] syntax" do
    @heidi[:heidi_test].should be_kind_of(Heidi::Project)
    @heidi["heidi_test"].should == @heidi.projects.first
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
heidi-0.4.0 spec/heidi_spec.rb