Skip to content
This repository was archived by the owner on Apr 6, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rvm use ruby-1.9.3@keydown --create
rvm use ruby-2.3.0@keydown --create
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rvm:
- 1.9.3
- 2.3.0
2 changes: 1 addition & 1 deletion keydown.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.add_dependency 'tilt'
s.add_dependency 'haml'
s.add_dependency 'sass'
s.add_dependency 'compass'
s.add_dependency 'compass', '~> 0.12.7'
s.add_dependency 'github-markdown'

s.add_development_dependency "rake"
Expand Down
6 changes: 3 additions & 3 deletions spec/lib/classnames_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
end

it "should return true if the class is present" do
@classnames.include?('foo').should be_true
@classnames.include?('foo').should be_truthy
end

it "should return false if the class is not present" do
@classnames.include?('bar').should be_false
@classnames.include?('bar').should be_falsey
end
end

Expand Down Expand Up @@ -99,4 +99,4 @@
end
end
end
end
end
28 changes: 14 additions & 14 deletions spec/tasks/generate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,45 +27,45 @@
end

it "should generate a directory for the presentation" do
File.directory?(project_dir).should be_true
File.directory?(project_dir).should be_truthy
end

it "should generate a sample Markdown file" do
File.exist?("#{project_dir}/slides.md").should be_true
File.exist?("#{project_dir}/slides.md").should be_truthy
end

it "should create the support directories for the presentation" do
File.directory?("#{project_dir}/css").should be_true
File.directory?("#{project_dir}/images").should be_true
File.directory?("#{project_dir}/js").should be_true
File.directory?("#{project_dir}/css").should be_truthy
File.directory?("#{project_dir}/images").should be_truthy
File.directory?("#{project_dir}/js").should be_truthy
end

it "should copy the deck.js core files" do
File.exist?("#{project_dir}/deck.js/core/deck.core.css").should be_true
File.exist?("#{project_dir}/deck.js/core/deck.core.js").should be_true
File.exist?("#{project_dir}/deck.js/core/deck.core.css").should be_truthy
File.exist?("#{project_dir}/deck.js/core/deck.core.js").should be_truthy
end

it "should copy deck.js's support files" do
File.exist?("#{project_dir}/deck.js/support/jquery.1.6.4.min.js").should be_true
File.exist?("#{project_dir}/deck.js/support/modernizr.custom.js").should be_true
File.exist?("#{project_dir}/deck.js/support/jquery.1.6.4.min.js").should be_truthy
File.exist?("#{project_dir}/deck.js/support/modernizr.custom.js").should be_truthy
end

it "should copy the deck.js extensions" do
File.directory?("#{project_dir}/deck.js/extensions").should be_true
File.directory?("#{project_dir}/deck.js/extensions").should be_truthy

extensions = Dir.glob("#{project_dir}/deck.js/extensions/*")
extensions.length.should > 1
extensions.should include("#{project_dir}/deck.js/extensions/codemirror")
end

it "should copy default theme files for deck.js" do
File.exist?("#{project_dir}/css/horizontal-slide.css").should be_true
File.exist?("#{project_dir}/css/swiss.css").should be_true
File.exist?("#{project_dir}/css/horizontal-slide.css").should be_truthy
File.exist?("#{project_dir}/css/swiss.css").should be_truthy
end

it "should copy default them files for codemirror.js" do
File.exist?("#{project_dir}/css/default.css").should be_true
File.exist?("#{project_dir}/css/default.css").should be_truthy
end

end
end
end
8 changes: 4 additions & 4 deletions spec/tasks/slides_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@
scripts.should include('deck.js/extensions/scale/deck.scale.js')
scripts.should include('deck.js/extensions/status/deck.status.js')
end

it "should have all of the extension top-level css files" do
stylesheets = @doc.css('link').collect {|tag| tag['href']}

stylesheets.should include('deck.js/extensions/codemirror/deck.codemirror.css')
stylesheets.should include('deck.js/extensions/goto/deck.goto.css')
stylesheets.should include('deck.js/extensions/hash/deck.hash.css')
Expand Down Expand Up @@ -200,7 +200,7 @@
it_should_behave_like "generating a presentation file"

it "should add the keydown.css file (which has the backgrounds) to the css directory" do
File.exist?("#{tmp_dir}/test/css/keydown.css").should be_true
File.exist?("#{tmp_dir}/test/css/keydown.css").should be_truthy
end

it "should build a CSS file with the custom background images definitions" do
Expand All @@ -213,4 +213,4 @@
@doc.css('link[@href="css/keydown.css"]').length.should == 1
end
end
end
end