Skip to content
Browse files

setup helpers to stub valid and invalid apps

  • Loading branch information...
1 parent 46c0916 commit f10333ad77f2b2a9c9569428034272e4759bccf0 Jordan Glasner committed
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/helper.rb
View
15 test/helper.rb
@@ -8,4 +8,19 @@
require File.expand_path(File.dirname(__FILE__)) + '/../lib/nimble_nodes'
class Test::Unit::TestCase
+
+ def setup_installed_app
+ NimbleNodes::App.stubs({
+ :name => "nimble-nodes-test",
+ :token => 'test'
+ })
+ end
+
+ def setup_invalid_app
+ NimbleNodes::App.stubs({
+ :name => nil,
+ :token => nil
+ })
+ end
+
end

0 comments on commit f10333a

Please sign in to comment.
Something went wrong with that request. Please try again.