Skip to content

Commit

Permalink
Fixing regexes in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 24, 2013
1 parent 2a8c073 commit 19b0d33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/sprockets_commonjs_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ def setup
end

def test_adds_commonjs_require
assert_match %r[var require = function\(name, root\) {], @output
assert_match %r[var require = function\(name, root\) \{], @output
end

def test_modularizes_modules
assert_match %r[require.define\({\"foo\":function], @output
assert_match %r[require.define\(\{\"foo\":function], @output
assert_match %r["Foo!"], @output
end

def test_does_not_modularize_non_modules
assert_no_match %r[require.define\({\"bar\":function], @output
assert_no_match %r[require.define\(\{\"bar\":function], @output
end

end

0 comments on commit 19b0d33

Please sign in to comment.