concordion 0.9.9.2 → 0.9.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README +0 -0
- data/Rakefile.rb +25 -28
- data/documentation/index.html +88 -0
- data/documentation/p/rcor/wiki/Tutorial/index.html +75 -0
- data/lib/concordion/binder.rb +26 -0
- data/lib/concordion/constants.rb +15 -0
- data/lib/{concordion_css.rb → concordion/css.rb} +9 -7
- data/lib/concordion/css_decorator.rb +59 -0
- data/lib/concordion/environment.rb +28 -0
- data/lib/concordion/error_condition.rb +27 -0
- data/lib/concordion/instrumenter.rb +31 -0
- data/lib/concordion/invoker.rb +148 -0
- data/lib/concordion/loader_helper.rb +17 -0
- data/lib/concordion/lookahead_handler.rb +16 -0
- data/lib/concordion/parse_result.rb +74 -0
- data/lib/concordion/parser.rb +43 -0
- data/lib/concordion/processor.rb +24 -0
- data/lib/concordion/reader.rb +11 -0
- data/lib/concordion/state.rb +77 -0
- data/lib/concordion/string_utility.rb +104 -0
- data/lib/concordion/string_writer.rb +13 -0
- data/lib/concordion/test_methods.rb +130 -0
- data/lib/concordion/utility.rb +72 -0
- data/lib/concordion/verifier.rb +52 -0
- data/lib/concordion/writer.rb +52 -0
- data/lib/concordion_test_case.rb +4 -16
- data/lib/goldmaster_test_case.rb +4 -4
- data/ruby-concordion.tmproj +249 -0
- data/test/concordion/css_decorator_test.rb +28 -0
- data/test/concordion/environment_test.rb +46 -0
- data/test/concordion/invoker_test.rb +20 -0
- data/test/concordion/parse_result_test.rb +51 -0
- data/test/concordion/reader_test.rb +12 -0
- data/test/concordion/state_test.rb +41 -0
- data/test/concordion/string_writer_test.rb +10 -0
- data/test/concordion/utility_test.rb +142 -0
- data/test/concordion/verifier_test.rb +38 -0
- data/test/concordion/writer_test.rb +29 -0
- data/{tests → test}/concordion.css +0 -0
- data/{tests/concordion → test}/goldmaster_test_case_test.rb +2 -8
- data/{tests → test/spec}/basic_assert.html +0 -0
- data/{tests → test/spec}/basic_assert_test.rb +2 -2
- data/{tests → test/spec}/basic_set.html +0 -0
- data/{tests → test/spec}/basic_set_test.rb +0 -1
- data/{tests → test/spec}/basic_text.html +0 -0
- data/{tests → test/spec}/basic_text_test.rb +0 -1
- data/{tests → test/spec}/failing.html +0 -0
- data/{tests → test/spec}/failing_test.rb +0 -1
- data/{tests → test/spec}/goldmasters/failing_with_subclass.html +0 -0
- data/{tests → test/spec}/goldmasters/failing_with_subclass_goldmaster.html +0 -0
- data/{tests → test/spec}/goldmasters/failing_with_subclass_test.rb +2 -2
- data/{tests → test/spec}/goldmasters/goldmaster_assert_true_failing.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_assert_true_failing_goldmaster.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_assert_true_failing_test.rb +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_failing.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_failing_goldmaster.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_failing_test.rb +0 -2
- data/{tests → test/spec}/goldmasters/goldmaster_malformed.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_malformed_goldmaster.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_malformed_test.rb +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_passing.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_passing_goldmaster.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_passing_test.rb +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_table.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_table_bug.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_table_bug_goldmaster.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_table_bug_test.rb +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_table_goldmaster.html +0 -0
- data/{tests → test/spec}/goldmasters/goldmaster_table_test.rb +1 -0
- data/{tests → test/spec}/image.html +0 -0
- data/{tests → test/spec}/image.jpg +0 -0
- data/{tests → test/spec}/image_test.rb +2 -2
- data/{tests → test/spec}/link_style_css.html +0 -0
- data/{tests → test/spec}/link_style_css_test.rb +1 -6
- data/{tests → test/spec}/lookahead_assert_true.html +0 -0
- data/{tests → test/spec}/lookahead_assert_true_test.rb +0 -0
- data/{tests → test/spec}/mixed.html +0 -0
- data/test/spec/mixed_test.rb +13 -0
- data/{tests → test/spec}/nested_element_lookahead.html +0 -0
- data/{tests → test/spec}/nested_element_lookahead_test.rb +0 -0
- data/{tests → test/spec}/numbers.html +0 -0
- data/{tests → test/spec}/numbers_test.rb +0 -0
- data/{tests → test/spec}/processes_elements_in_sorted_order.html +0 -0
- data/{tests → test/spec}/processes_elements_in_sorted_order_test.rb +0 -0
- data/{tests → test/spec}/return_result.html +0 -0
- data/{tests → test/spec}/return_result_test.rb +0 -0
- data/test/spec/structure/maps_to_module.html +11 -0
- data/test/spec/structure/maps_to_module_test.rb +13 -0
- data/{tests → test/spec}/tables/single_row_table.html +0 -0
- data/{tests → test/spec}/tables/single_row_table_test.rb +0 -0
- data/{tests → test/spec}/tables/table.html +0 -0
- data/{tests → test/spec}/tables/table_test.rb +1 -0
- data/{tests → test/spec}/tables/test_helper.rb +3 -7
- data/{tests → test/spec}/tables/verify_rows.html +0 -0
- data/{tests → test/spec}/tables/verify_rows_scsr.html +0 -0
- data/{tests → test/spec}/tables/verify_rows_scsr_test.rb +2 -1
- data/{tests → test/spec}/tables/verify_rows_simple.html +0 -0
- data/{tests → test/spec}/tables/verify_rows_simple_test.rb +0 -0
- data/{tests → test/spec}/tables/verify_rows_test.rb +1 -0
- data/{tests → test/spec}/user-reported/apostrophe.html +0 -0
- data/{tests → test/spec}/user-reported/apostrophe_test.rb +0 -1
- data/{tests → test/spec}/user-reported/ariel_example.html +0 -0
- data/{tests → test/spec}/user-reported/ariel_example_test.rb +0 -0
- data/{tests → test/spec}/user-reported/attr_assert.html +0 -0
- data/{tests → test/spec}/user-reported/attr_assert_test.rb +0 -1
- data/{tests → test/spec}/user-reported/basic_assert_true.html +0 -0
- data/{tests → test/spec}/user-reported/basic_assert_true_test.rb +1 -2
- data/{tests → test/spec}/user-reported/rubyish.html +0 -0
- data/{tests → test/spec}/user-reported/rubyish_test.rb +0 -1
- data/test/test_helper.rb +11 -0
- metadata +131 -114
- data/lib/concordion_binder.rb +0 -24
- data/lib/concordion_constants.rb +0 -13
- data/lib/concordion_css_decorator.rb +0 -58
- data/lib/concordion_environment.rb +0 -27
- data/lib/concordion_error_condition.rb +0 -26
- data/lib/concordion_instrumenter.rb +0 -30
- data/lib/concordion_invoker.rb +0 -137
- data/lib/concordion_lookahead_handler.rb +0 -17
- data/lib/concordion_parse_result.rb +0 -72
- data/lib/concordion_parser.rb +0 -47
- data/lib/concordion_processor.rb +0 -25
- data/lib/concordion_reader.rb +0 -10
- data/lib/concordion_state.rb +0 -78
- data/lib/concordion_string_utility.rb +0 -97
- data/lib/concordion_string_writer.rb +0 -13
- data/lib/concordion_test_methods.rb +0 -132
- data/lib/concordion_utility.rb +0 -70
- data/lib/concordion_verifier.rb +0 -50
- data/lib/concordion_writer.rb +0 -43
- data/lib/loader_helper.rb +0 -16
- data/tests/concordion/concordion_css_decorator_test.rb +0 -28
- data/tests/concordion/concordion_environment_test.rb +0 -44
- data/tests/concordion/concordion_parse_result_test.rb +0 -51
- data/tests/concordion/concordion_reader_test.rb +0 -15
- data/tests/concordion/concordion_state_test.rb +0 -38
- data/tests/concordion/concordion_string_writer_test.rb +0 -13
- data/tests/concordion/concordion_utility_test.rb +0 -135
- data/tests/concordion/concordion_verifier_test.rb +0 -38
- data/tests/concordion/concordion_writer_test.rb +0 -26
- data/tests/mixed_test.rb +0 -19
@@ -0,0 +1,29 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__),'..','test_helper')
|
2
|
+
require 'concordion/writer'
|
3
|
+
|
4
|
+
module Concordion
|
5
|
+
class WriterTest < Test::Unit::TestCase
|
6
|
+
def test_output_file_name
|
7
|
+
|
8
|
+
assert_equal "./bleh_test_output.html",
|
9
|
+
Concordion::Writer.new.output_filename_for("bleh.html")
|
10
|
+
assert_equal "./bleh_test_output.html",
|
11
|
+
Concordion::Writer.new(nil).output_filename_for("bleh.html")
|
12
|
+
assert_equal "foo/bleh_test_output.html",
|
13
|
+
Concordion::Writer.new("foo").output_filename_for("bleh.html")
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_retains_directory_structure_of_the_file
|
17
|
+
assert_equal "./foo/bleh_test_output.html",
|
18
|
+
Concordion::Writer.new.output_filename_for("foo/bleh.html")
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_output_file_exists
|
22
|
+
File.expects(:exists?).with("foo/output.css").returns(true)
|
23
|
+
File.expects(:exists?).with("foo/missing").returns(false)
|
24
|
+
|
25
|
+
assert Concordion::Writer.new("foo").output_file_exists?("output.css")
|
26
|
+
assert !Concordion::Writer.new("foo").output_file_exists?("missing")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
File without changes
|
@@ -1,11 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
$:.unshift File.join(File.dirname(__FILE__),'..','lib')
|
5
|
-
|
6
|
-
require 'test/unit'
|
7
|
-
require 'goldmaster_test_case'
|
8
|
-
require 'mocha'
|
1
|
+
require File.join(File.dirname(__FILE__),'test_helper')
|
2
|
+
require "goldmaster_test_case"
|
9
3
|
|
10
4
|
class GoldmasterTestCaseTest < Test::Unit::TestCase
|
11
5
|
include FailConditionally
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'test_helper'
|
2
|
-
require '
|
2
|
+
require 'concordion/test_methods'
|
3
3
|
|
4
4
|
|
5
5
|
class ArbitraryBaseTestCase < Test::Unit::TestCase
|
@@ -9,7 +9,7 @@ class ArbitraryBaseTestCase < Test::Unit::TestCase
|
|
9
9
|
end
|
10
10
|
|
11
11
|
class FailingWithSubclassTest < ArbitraryBaseTestCase
|
12
|
-
include
|
12
|
+
include Concordion::TestMethods
|
13
13
|
|
14
14
|
def expected_failure_count
|
15
15
|
2
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,11 +1,6 @@
|
|
1
|
-
|
2
|
-
# and open the template in the editor.
|
3
|
-
|
4
|
-
$:.unshift File.join(File.dirname(__FILE__),'..','lib')
|
5
|
-
|
1
|
+
require 'test_helper'
|
6
2
|
require 'concordion_test_case'
|
7
3
|
|
8
|
-
|
9
4
|
class LinkStyleCssTest < ConcordionTestCase
|
10
5
|
def expected_failure_count
|
11
6
|
1
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<html xmlns:concordion="http://www.concordion.org/2007/concordion">
|
2
|
+
<body>
|
3
|
+
<span>
|
4
|
+
<h1>Module Specification</h1>
|
5
|
+
<h4>Demonstrates how Modules are used to organize specifications.</h4>
|
6
|
+
<blockquote>
|
7
|
+
<quote concordion:assertTrue="modules_work?">testing modules</quote>
|
8
|
+
</blockquote>
|
9
|
+
</span>
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__),'..','..','test_helper')
|
2
|
+
require 'concordion/test_methods'
|
3
|
+
|
4
|
+
module Structure
|
5
|
+
class MapsToModuleTest < Test::Unit::TestCase
|
6
|
+
include Concordion::TestMethods
|
7
|
+
|
8
|
+
def modules_work?
|
9
|
+
true
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,9 +1,5 @@
|
|
1
|
-
$: << File.join(File.expand_path(File.dirname( __FILE__)),"..","lib")
|
2
|
-
$: << File.join(File.expand_path(File.dirname( __FILE__)),"..","test-lib")
|
1
|
+
$: << File.join(File.expand_path(File.dirname( __FILE__)),"..","..","..","lib")
|
2
|
+
$: << File.join(File.expand_path(File.dirname( __FILE__)),"..","..","..","test-lib")
|
3
3
|
$: << File.expand_path(File.dirname( __FILE__))
|
4
4
|
|
5
|
-
require "test/unit"
|
6
|
-
|
7
|
-
class Test::Unit::TestCase
|
8
|
-
|
9
|
-
end
|
5
|
+
require "test/unit"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__),'..','lib')
|
2
|
+
$:.unshift File.join(File.dirname(__FILE__),'..','lib','concordion')
|
3
|
+
$:.unshift File.join(File.dirname(__FILE__),'..','test-lib')
|
4
|
+
$:.unshift File.join(File.dirname(__FILE__),'spec')
|
5
|
+
$:.unshift File.join(File.dirname(__FILE__),'spec','structure')
|
6
|
+
$:.unshift File.join(File.dirname(__FILE__),'spec','user-reported')
|
7
|
+
ENV['RCOR_OUTPUT_DIR'] ||= File.join(File.expand_path(File.dirname( __FILE__)),'..','documentation','spec-output')
|
8
|
+
|
9
|
+
require 'rubygems'
|
10
|
+
require 'test/unit'
|
11
|
+
require 'mocha'
|