Skip to content

Commit

Permalink
Fix silly test counts
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Oct 4, 2011
1 parent 99fa4f1 commit 24d0b99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_environment.rb
Expand Up @@ -171,33 +171,33 @@ def self.test(name, &block)
@env.each_entry(fixture_path("default")) do |path|
entries << path
end
assert_equal 30, entries.length
assert_equal 34, entries.length
end

test "each entry enumerator" do
enum = @env.each_entry(fixture_path("default"))
assert_equal 30, enum.to_a.length
assert_equal 34, enum.to_a.length
end

test "iterate over each file" do
files = []
@env.each_file do |filename|
files << filename
end
assert_equal 27, files.length
assert_equal 29, files.length
end

test "each file enumerator" do
enum = @env.each_file
assert_equal 27, enum.to_a.length
assert_equal 29, enum.to_a.length
end

test "iterate over each logical path" do
paths = []
@env.each_logical_path do |logical_path|
paths << logical_path
end
assert_equal 27, paths.length
assert_equal 29, paths.length
assert_equal paths.size, paths.uniq.size, "has duplicates"

assert paths.include?("application.js")
Expand All @@ -208,7 +208,7 @@ def self.test(name, &block)

test "each logical path enumerator" do
enum = @env.each_logical_path
assert_equal 27, enum.to_a.length
assert_equal 29, enum.to_a.length
end

test "CoffeeScript files are compiled in a closure" do
Expand Down

0 comments on commit 24d0b99

Please sign in to comment.