Skip to content

Commit

Permalink
fixed updating filter problwm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehren Murdick committed May 7, 2009
1 parent a98f468 commit b729e68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/step_definitions/filter_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


Then /^I should be able to update a filter "([^\"]*)"$/ do |name|
@publisher.should_receive(:put).with("/gnip/publishers/delicious/filters/delicious.xml", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><filter name=\"foobar\" fullData=\"false\"><rule type=\"actor\">bazqux</rule></filter>")
@publisher.should_receive(:put).with("/gnip/publishers/delicious/filters/foobar.xml", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><filter name=\"foobar\" fullData=\"false\"><rule type=\"actor\">bazqux</rule></filter>")
@filter = @publisher.update_filter!(name, :actor => "bazqux")
end

2 changes: 1 addition & 1 deletion lib/gnap/publisher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def create_filter! name, rules

def update_filter! name, rules
data = Filter.new(@config, @publisher, name, rules).to_xml
put(path + UPDATE_FILTER_PATH % [@publisher, name], data)
put(path + UPDATE_FILTER_PATH % name, data)
filter(name)
end

Expand Down

0 comments on commit b729e68

Please sign in to comment.