Sha256: c0e618b1e4ae85c312fc96ef2958e2903660c6461dd71223a50706264efa66d5
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 Bytes
Contents
require "spec_helper" describe "starting a presentation" do let(:presentation_dir){File.dirname(__FILE__) + "/../../presentation"} it "should contian the commits for presentations" do initialise_presentation Dir.chdir(presentation_dir) do presenter = GitPresenter.start_presentation(".") presenter.commits.length.should eql 3 end end it "first commit should be first commit in file" do start_presentation do |commits, presenter| presenter.commits[0].should eql commits[0].id end end it "second commit should be second commit in file" do start_presentation do |commits, presenter| presenter.commits[1].should eql commits[1].id end end it "should have the presentation at first commit" do start_presentation do |commits, presenter| head_position.should eql commits.first.id end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git_presenter-0.1.1 | spec/integration/start_presentation_spec.rb |
git_presenter-0.1.0 | spec/integration/start_presentation_spec.rb |