Skip to content

Commit

Permalink
dummy controller
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasc committed Aug 14, 2014
1 parent 9bf9056 commit 58c9d83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ GEM
rb-inotify (>= 0.9)
lumberjack (1.0.9)
method_source (0.8.2)
mime-types (2.3)
mime-types (1.25.1)
mini_portile (0.6.0)
minitest (5.4.0)
mongoid (4.0.0)
Expand Down
11 changes: 6 additions & 5 deletions test/mongoid_traffic/controller_additions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ module MongoidTraffic
before(:each) do
@controller_class = Class.new
@controller = @controller_class.new
def @controller_class.helper_method(name); end
@controller_class.send(:include, MongoidTraffic::ControllerAdditions)
end

describe '.log_traffic' do
# it 'logs with :user_agent'
# it 'logs with :referer'
# it 'logs with :ip_address'
# it 'logs with :unique_id'
it 'logs with :user_agent'
it 'logs with :referer'
it 'logs with :ip_address'
it 'logs with :unique_id'
end

describe '.log_scoped_traffic' do
# it 'infers scope from request path'
it 'infers scope from request path'
end

end
Expand Down

0 comments on commit 58c9d83

Please sign in to comment.