Skip to content

Commit 8695afc

Browse files
committedOct 30, 2013
Simple spec runner for Zepto
1 parent 257c0d9 commit 8695afc

File tree

5 files changed

+25
-2
lines changed

5 files changed

+25
-2
lines changed
 

Diff for: ‎Rakefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ Bundler.require
33
Bundler::GemHelper.install_tasks
44

55
require 'opal/spec/rake_task'
6-
Opal::Spec::RakeTask.new(:default)
6+
Opal::Spec::RakeTask.new(:default) do |s|
7+
s.index_path = 'spec/index.html'
8+
end
9+
10+
Opal::Spec::RakeTask.new(:zepto) do |s|
11+
s.index_path = 'spec/zepto/index.html'
12+
end
713

814
desc "Build build/opal-jquery.js"
915
task :dist do

Diff for: ‎spec/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
</head>
5+
<body>
6+
<%= javascript_include_tag 'jquery' %>
7+
<%= javascript_include_tag @server.main %>
8+
</body>
9+
</html>

Diff for: ‎spec/spec_helper.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'jquery'
21
require 'opal-spec'
32
require 'opal-jquery'
43

Diff for: ‎spec/zepto/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
</head>
5+
<body>
6+
<%= javascript_include_tag 'zepto/zepto' %>
7+
<%= javascript_include_tag @server.main %>
8+
</body>
9+
</html>

Diff for: ‎spec/zepto.js renamed to ‎spec/zepto/zepto.js

File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.