forked from binford2k/showoff
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require File.expand_path "../test_helper", __FILE__ | ||
|
||
context "ShowOff Bare tests" do | ||
|
||
def app | ||
opt = {:verbose => false, :pres_dir => "test/fixtures/bare", :pres_file => 'showoff.json'} | ||
ShowOff.set opt | ||
ShowOff.new | ||
end | ||
|
||
setup do | ||
end | ||
|
||
test "can get bare slides" do | ||
get '/slides' | ||
assert last_response.ok? | ||
assert_equal 2, last_response.body.scan(/div class="slide"/).size | ||
assert_match '<h1>My Bare Presentation</h1>', last_response.body | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
!SLIDE | ||
# My Bare Presentation # | ||
|
||
!SLIDE bullets incremental | ||
# Some Bullet Points # | ||
|
||
* first point | ||
* second point | ||
* third point |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters