Skip to content

Commit

Permalink
XAP file location spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jschementi committed Jun 22, 2008
1 parent a1948e1 commit 6c48924
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vendor/plugins/silverline/lib/silverline/essential/html.rb
Expand Up @@ -47,7 +47,7 @@ def generate_init_params(options)
end

def public_xap_file
"/#{Silverline::XAP_FILE.split("/").last}"
"/#{Silverline.const_get(:XAP_FILE).split("/").last}"
end

def jsonify(o)
Expand Down
Expand Up @@ -41,7 +41,12 @@ class HtmlTesttHost
result = "foo=hi, bar=bye, http_host=baz"
end

it "should know the XAP file location"
it "should know the XAP file location" do
Silverline.should_receive(:const_get).with(:XAP_FILE).and_return "path/to/foo.xap"
@html.send(:public_xap_file).should == "/foo.xap"
end

it "should know how to put JSON in initParams"

it "should know how to render a template"
end

0 comments on commit 6c48924

Please sign in to comment.