Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

moved tests to App

  • Loading branch information...
commit 55d53c202213ee41486a715b94029941edeafbb0 1 parent f10333a
Jordan Glasner authored
Showing with 1 addition and 36 deletions.
  1. +1 −36 test/unit/test_nimble_nodes.rb
View
37 test/unit/test_nimble_nodes.rb
@@ -6,46 +6,11 @@ class TestNimbleNodes < Test::Unit::TestCase
context "NimbleNodes module" do
setup { @module = NimbleNodes }
- context "in a Rails app" do
-
- setup { NimbleNodes::App.stubs(:rails?).returns(true) }
-
- context "pre 2.3" do
- setup { NimbleNodes::App.stubs(:rails_version).returns(2.2) }
-
- should "use NimbleNodes::Filter as reporter" do
- assert_equal 'filter', @module.reporter.split('/').last
- end
-
- end
-
- context "2.3 or later" do
- setup { NimbleNodes::App.stubs(:rails_version).returns(2.3) }
-
- should "use NimbleNodes::Middleware as reporter" do
- assert_equal 'middleware', @module.reporter.split('/').last
- end
-
- end
-
- end
-
- context "in a non-Rails app" do
- setup { NimbleNodes::App.stubs(:rails?).returns(false) }
-
- should "use NimbleNodes::Middleware" do
- assert_equal 'middleware8', @module.reporter.split('/').last
- end
-
- end
context "App installed at NimbleNodes" do
setup {
- NimbleNodes::App.stubs({
- :name => 'nimble-nodes-test',
- :token => 'token'
- })
+ setup_installed_app
}
context "not paused" do
Please sign in to comment.
Something went wrong with that request. Please try again.