summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-10 10:56:17 +0200
committerAzul <azul@leap.se>2014-07-12 09:14:24 +0200
commit0666c06fd7e66c783345a9810ace319a1cd9321f (patch)
treedadd73b6b8128bfb2171d37594cbfd1bef1d8618
parentbdd5060ccc13951524c171e2d3b81eeddec1625d (diff)
minor: fix typo in load_views
It removed most of the reduce functions... really not what we wanted
-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