Skip to content

Commit

Permalink
Convert default module name from package to index
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Jolley committed May 18, 2010
1 parent 0946e19 commit 6d62b5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

end

describe "when use_modules = true but target has package.js" do
describe "when use_modules = true but target has index.js" do

before do
std_before :builder_tests, :package_test
Expand All @@ -107,7 +107,7 @@

it "VERIFY PRECONDITIONS" do
@target.config.use_modules.should be_true
@manifest.entry_for('source/package.js').should_not be_nil
@manifest.entry_for('source/index.js').should_not be_nil
end

it "should NOT generate a package_exports entry" do
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/builders/package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
code = File.read(path)

# verify key points...
code.should =~ /#{Regexp.escape("tiki.module('module_test:package'")}/
code.should =~ /#{Regexp.escape("tiki.module('module_test:index'")}/

# should only define exports for foo & bar
# other exports are defined in the fixture but not at package level
Expand Down

0 comments on commit 6d62b5d

Please sign in to comment.