summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/support/test/functional/tickets_list_test.rb2
-rw-r--r--lib/extensions/couchrest.rb1
2 files changed, 1 insertions, 2 deletions
diff --git a/engines/support/test/functional/tickets_list_test.rb b/engines/support/test/functional/tickets_list_test.rb
index 4c4cdef..ab76f5f 100644
--- a/engines/support/test/functional/tickets_list_test.rb
+++ b/engines/support/test/functional/tickets_list_test.rb
@@ -108,7 +108,7 @@ class TicketsListTest < ActionController::TestCase
assert_equal [closed_ticket], assigns(:all_tickets).all
end
- test "list all tickets inludes closed + open" do
+ test "list all tickets" do
login
open_ticket = FactoryGirl.create :ticket_with_comment,
created_by: @current_user.id
diff --git a/lib/extensions/couchrest.rb b/lib/extensions/couchrest.rb
index 290cd32..883073f 100644
--- a/lib/extensions/couchrest.rb
+++ b/lib/extensions/couchrest.rb
@@ -24,7 +24,6 @@ module CouchRest
Dir.glob("#{dir}/*.js") do |js|
name = File.basename(js, '.js')
file = File.open(js, 'r')
- reduce =
view name.to_sym,
map: file.read,
reduce: reduce