Sha256: acbf3b6ae4a90c597daff63e74a725307dcbd30a1975dd90d2ae873a3f5bf9c5
Contents?: true
Size: 915 Bytes
Versions: 2
Compression:
Stored size: 915 Bytes
Contents
require "spec_helper" describe "initializing a presentation" do let(:presentation_dir){File.dirname(__FILE__) + "/../../presentation"} context ".presentation file" do it "should be written to root directory" do initialise_presentation do File.exists?(".presentation").should be_true end end it "should contain a line for each commit to the repository" do initialise_presentation do |commits, file| file.lines.to_a.length.should eql commits.length end end it "first line should contain the first commit number" do initialise_presentation(true) do |commits, file| file.lines.first.should include commits.first.id end end it "second line should contain the second commit number" do initialise_presentation(true) do |commits, file| file.lines.to_a[1].should include commits[1].id end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git_presenter-0.1.1 | spec/integration/initialize_presentation_spec.rb |
git_presenter-0.1.0 | spec/integration/initialize_presentation_spec.rb |