Skip to content

Commit

Permalink
Namespace Snip as per Soup 0.9.11+
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyatom committed May 31, 2010
1 parent fc748bc commit 2187eff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/vanilla/dynasnips/new.rb
Expand Up @@ -7,6 +7,6 @@ def handle(*arg)
app.request.authenticate!

base_params = {:render_as => '', :content => '', :author => current_user}.update(app.request.params)
editor = EditSnip.new(app).edit(Snip.new(base_params))
editor = EditSnip.new(app).edit(Soup::Snip.new(base_params))
end
end
6 changes: 2 additions & 4 deletions test/test_helper.rb
Expand Up @@ -34,15 +34,13 @@ def assert_response_body(expected, uri)
end

def set_main_template(template_content)
system = @app.soup["system"] || Snip.new({:name => "system"}, @app.soup)
system = @app.soup["system"] || Soup::Snip.new({:name => "system"}, @app.soup)
system.main_template = template_content
system.save
end

def create_snip(params)
s = Snip.new(params, @app.soup)
s.save
s
@app.soup << params
end

def mock_env_for_url(url)
Expand Down

0 comments on commit 2187eff

Please sign in to comment.