Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test setup for riot

  • Loading branch information...
commit b553bc0484223a08d511c2e388013665d96273bd 1 parent 61efca1
Rafael Bandeira rafaelbandeira3 authored
Showing with 20 additions and 17 deletions.
  1. +13 −0 Rakefile
  2. +7 −0 test/teststrap.rb
  3. +0 −17 tests/vimeo_video_test.rb
13 Rakefile
View
@@ -1,3 +1,16 @@
+require 'rubygems'
+require 'rake'
+require 'rake/testtask'
+
+desc 'Test the crap out of this app'
+Rake::TestTask.new do |t|
+ t.libs << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = false
+end
+
+task :default => :test
+
task :load_ticket_transactions do
require './scripts/load_ticket_transactions'
end
7 test/teststrap.rb
View
@@ -0,0 +1,7 @@
+require 'rubygems'
+require 'riot'
+require 'ruby-debug'
+
+Dir.glob('./config/*.rb').each {|f|
+ puts "Loaded #{f}" if require f
+}
17 tests/vimeo_video_test.rb
View
@@ -1,17 +0,0 @@
-require 'test/unit'
-require './models/vimeo_video'
-
-class VimeoVideoTest < Test::Unit::TestCase
- def setup
- @subject = VimeoVideo.new
- @subject[:title] = 'a good video'
- @subject[:vimeo_id] = '123'
- end
-
- def testEmbedCode
- assert_match @subject.embed_code, %r|iframe|
- assert_match @subject.embed_code, %r|video/123|
- assert_match @subject.embed_code, %r|vimeo.com/123|
- assert_match @subject.embed_code, %r|a good video|
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.