homeschool 0.0.1.5 → 0.0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/standardized_test.rb +0 -8
- metadata +1 -1
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rake/gempackagetask'
|
|
3
3
|
|
4
4
|
task :default => :package
|
5
5
|
|
6
|
-
REV = `svn info`[/Revision:\s(\d+)/, 1] rescue nil
|
6
|
+
REV = `svn up && svn info`[/Revision:\s(\d+)/, 1] rescue nil
|
7
7
|
PKG_VERSION = ENV['VERSION'] || "0.0.1" + (REV ? ".#{REV}" : "")
|
8
8
|
|
9
9
|
#PKG_VERSION = '0.0.1' #{}`ruby -Ilib bin/homeschool -v`.chomp
|
data/lib/standardized_test.rb
CHANGED
@@ -29,14 +29,6 @@ module HomeschoolTestHelper
|
|
29
29
|
def assert_json(expected, actual)
|
30
30
|
assert_equal JSON.parse(expected), JSON.parse(actual)
|
31
31
|
end
|
32
|
-
def assert_difference(klass, method, difference=1, &block)
|
33
|
-
old = klass.send(method)
|
34
|
-
block.call
|
35
|
-
assert_equal old + difference, klass.send(method)
|
36
|
-
end
|
37
|
-
def assert_no_difference(klass, method, &block)
|
38
|
-
assert_difference(klass, method, 0, &block)
|
39
|
-
end
|
40
32
|
def assert_fails
|
41
33
|
yield
|
42
34
|
passed = true
|