Skip to content
This repository

Identify ruby code for syntax highlighting #180

Merged
merged 1 commit into from over 1 year ago

3 participants

Patrick Van Stee Andy Lindeman Myron Marston
Patrick Van Stee

Fixes #178

Andy Lindeman
Owner

:shipit:

Andy Lindeman alindeman merged commit 5bb512a into from
Myron Marston
Owner

@vanstee -- thanks for doing this on all the repos! It'll make a big difference in how the cukes look on relish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Oct 12, 2012
Patrick Van Stee vanstee Identify ruby code for syntax highlighting
Fixes #178
733e5d8
This page is out of date. Refresh to see the latest.

Showing 28 changed files with 76 additions and 76 deletions. Show diff stats Hide diff stats

  1. +4 4 features/built_in_matchers/be.feature
  2. +1 1  features/built_in_matchers/be_within.feature
  3. +1 1  features/built_in_matchers/cover.feature
  4. +2 2 features/built_in_matchers/end_with.feature
  5. +5 5 features/built_in_matchers/equality.feature
  6. +1 1  features/built_in_matchers/exist.feature
  7. +3 3 features/built_in_matchers/expect_change.feature
  8. +4 4 features/built_in_matchers/expect_error.feature
  9. +2 2 features/built_in_matchers/have.feature
  10. +3 3 features/built_in_matchers/include.feature
  11. +2 2 features/built_in_matchers/match.feature
  12. +3 3 features/built_in_matchers/operators.feature
  13. +5 5 features/built_in_matchers/predicates.feature
  14. +2 2 features/built_in_matchers/respond_to.feature
  15. +1 1  features/built_in_matchers/satisfy.feature
  16. +2 2 features/built_in_matchers/start_with.feature
  17. +3 3 features/built_in_matchers/throw_symbol.feature
  18. +2 2 features/built_in_matchers/types.feature
  19. +5 5 features/built_in_matchers/yield.feature
  20. +2 2 features/custom_matchers/access_running_example.feature
  21. +1 1  features/custom_matchers/define_diffable_matcher.feature
  22. +12 12 features/custom_matchers/define_matcher.feature
  23. +1 1  features/custom_matchers/define_matcher_outside_rspec.feature
  24. +1 1  features/custom_matchers/define_matcher_with_fluent_interface.feature
  25. +1 1  features/customized_message.feature
  26. +4 4 features/diffing.feature
  27. +2 2 features/implicit_docstrings.feature
  28. +1 1  features/test_frameworks/test_unit.feature
8 features/built_in_matchers/be.feature
@@ -9,7 +9,7 @@ Feature: "be" matchers
9 9
10 10 Scenario: be_true matcher
11 11 Given a file named "be_true_spec.rb" with:
12   - """
  12 + """ruby
13 13 describe "be_true matcher" do
14 14 specify { true.should be_true }
15 15 specify { 7.should be_true }
@@ -55,7 +55,7 @@ Feature: "be" matchers
55 55
56 56 Scenario: be_false matcher
57 57 Given a file named "be_false_spec.rb" with:
58   - """
  58 + """ruby
59 59 describe "be_false matcher" do
60 60 specify { nil.should be_false }
61 61 specify { false.should be_false }
@@ -101,7 +101,7 @@ Feature: "be" matchers
101 101
102 102 Scenario: be_nil matcher
103 103 Given a file named "be_nil_spec.rb" with:
104   - """
  104 + """ruby
105 105 describe "be_nil matcher" do
106 106 specify { nil.should be_nil }
107 107 specify { false.should_not be_nil }
@@ -147,7 +147,7 @@ Feature: "be" matchers
147 147
148 148 Scenario: be matcher
149 149 Given a file named "be_spec.rb" with:
150   - """
  150 + """ruby
151 151 describe "be_matcher" do
152 152 specify { true.should be }
153 153 specify { 7.should be }
2  features/built_in_matchers/be_within.feature
@@ -20,7 +20,7 @@ Feature: be_within matcher
20 20
21 21 Scenario: basic usage
22 22 Given a file named "be_within_matcher_spec.rb" with:
23   - """
  23 + """ruby
24 24 describe 27.5 do
25 25 it { should be_within(0.5).of(27.9) }
26 26 it { should be_within(0.5).of(28.0) }
2  features/built_in_matchers/cover.feature
@@ -11,7 +11,7 @@ Feature: cover matcher
11 11
12 12 Scenario: range usage
13 13 Given a file named "range_cover_matcher_spec.rb" with:
14   - """
  14 + """ruby
15 15 describe (1..10) do
16 16 it { should cover(4) }
17 17 it { should cover(6) }
4 features/built_in_matchers/end_with.feature
@@ -9,7 +9,7 @@ Feature: end_with matcher
9 9
10 10 Scenario: string usage
11 11 Given a file named "example_spec.rb" with:
12   - """
  12 + """ruby
13 13 describe "this string" do
14 14 it { should end_with "string" }
15 15 it { should_not end_with "stringy" }
@@ -27,7 +27,7 @@ Feature: end_with matcher
27 27
28 28 Scenario: array usage
29 29 Given a file named "example_spec.rb" with:
30   - """
  30 + """ruby
31 31 describe [0, 1, 2, 3, 4] do
32 32 it { should end_with 4 }
33 33 it { should end_with 3, 4 }
10 features/built_in_matchers/equality.feature
@@ -26,7 +26,7 @@ Feature: equality matchers
26 26
27 27 Scenario: compare using eq (==)
28 28 Given a file named "compare_using_eq.rb" with:
29   - """
  29 + """ruby
30 30 require 'spec_helper'
31 31
32 32 describe "a string" do
@@ -50,7 +50,7 @@ Feature: equality matchers
50 50
51 51 Scenario: compare using ==
52 52 Given a file named "compare_using_==.rb" with:
53   - """
  53 + """ruby
54 54 require 'spec_helper'
55 55
56 56 describe "a string" do
@@ -74,7 +74,7 @@ Feature: equality matchers
74 74
75 75 Scenario: compare using eql (eql?)
76 76 Given a file named "compare_using_eql.rb" with:
77   - """
  77 + """ruby
78 78 require 'spec_helper'
79 79
80 80 describe "an integer" do
@@ -97,7 +97,7 @@ Feature: equality matchers
97 97
98 98 Scenario: compare using equal (equal?)
99 99 Given a file named "compare_using_equal.rb" with:
100   - """
  100 + """ruby
101 101 require 'spec_helper'
102 102
103 103 describe "a string" do
@@ -121,7 +121,7 @@ Feature: equality matchers
121 121
122 122 Scenario: compare using be (equal?)
123 123 Given a file named "compare_using_be.rb" with:
124   - """
  124 + """ruby
125 125 require 'spec_helper'
126 126
127 127 describe "a string" do
2  features/built_in_matchers/exist.feature
@@ -7,7 +7,7 @@ Feature: exist matcher
7 7
8 8 Scenario: basic usage
9 9 Given a file named "exist_matcher_spec.rb" with:
10   - """
  10 + """ruby
11 11 class Planet
12 12 attr_reader :name
13 13
6 features/built_in_matchers/expect_change.feature
@@ -4,7 +4,7 @@ Feature: expect change
4 4
5 5 Background:
6 6 Given a file named "lib/counter.rb" with:
7   - """
  7 + """ruby
8 8 class Counter
9 9 class << self
10 10 def increment
@@ -21,7 +21,7 @@ Feature: expect change
21 21
22 22 Scenario: expect change
23 23 Given a file named "spec/example_spec.rb" with:
24   - """
  24 + """ruby
25 25 require "counter"
26 26
27 27 describe Counter, "#increment" do
@@ -41,7 +41,7 @@ Feature: expect change
41 41
42 42 Scenario: expect no change
43 43 Given a file named "spec/example_spec.rb" with:
44   - """
  44 + """ruby
45 45 require "counter"
46 46
47 47 describe Counter, "#increment" do
8 features/built_in_matchers/expect_error.feature
@@ -48,7 +48,7 @@ Feature: raise_error matcher
48 48
49 49 Scenario: match message with a string
50 50 Given a file named "example_spec.rb" with:
51   - """
  51 + """ruby
52 52 describe "matching error message with string" do
53 53 it "matches the error message" do
54 54 expect { raise StandardError, 'this message exactly'}.
@@ -61,7 +61,7 @@ Feature: raise_error matcher
61 61
62 62 Scenario: match message with a regexp
63 63 Given a file named "example_spec.rb" with:
64   - """
  64 + """ruby
65 65 describe "matching error message with regex" do
66 66 it "matches the error message" do
67 67 expect { raise StandardError, "my message" }.
@@ -74,7 +74,7 @@ Feature: raise_error matcher
74 74
75 75 Scenario: match type + message with string
76 76 Given a file named "example_spec.rb" with:
77   - """
  77 + """ruby
78 78 describe "matching error message with string" do
79 79 it "matches the error message" do
80 80 expect { raise StandardError, 'this message exactly'}.
@@ -87,7 +87,7 @@ Feature: raise_error matcher
87 87
88 88 Scenario: match type + message with regexp
89 89 Given a file named "example_spec.rb" with:
90   - """
  90 + """ruby
91 91 describe "matching error message with regex" do
92 92 it "matches the error message" do
93 93 expect { raise StandardError, "my message" }.
4 features/built_in_matchers/have.feature
@@ -25,7 +25,7 @@ Feature: have(n).items matcher
25 25
26 26 Scenario: have(x).items on a collection
27 27 Given a file named "have_items_spec.rb" with:
28   - """
  28 + """ruby
29 29 describe [1, 2, 3] do
30 30 it { should have(3).items }
31 31 it { should_not have(2).items }
@@ -61,7 +61,7 @@ Feature: have(n).items matcher
61 61
62 62 Scenario: have(x).words on a String when String#words is defined
63 63 Given a file named "have_words_spec.rb" with:
64   - """
  64 + """ruby
65 65 class String
66 66 def words
67 67 split(' ')
6 features/built_in_matchers/include.feature
@@ -25,7 +25,7 @@ Feature: include matcher
25 25
26 26 Scenario: array usage
27 27 Given a file named "array_include_matcher_spec.rb" with:
28   - """
  28 + """ruby
29 29 describe [1, 3, 7] do
30 30 it { should include(1) }
31 31 it { should include(3) }
@@ -60,7 +60,7 @@ Feature: include matcher
60 60
61 61 Scenario: string usage
62 62 Given a file named "string_include_matcher_spec.rb" with:
63   - """
  63 + """ruby
64 64 describe "a string" do
65 65 it { should include("str") }
66 66 it { should include("a", "str", "ng") }
@@ -84,7 +84,7 @@ Feature: include matcher
84 84
85 85 Scenario: hash usage
86 86 Given a file named "hash_include_matcher_spec.rb" with:
87   - """
  87 + """ruby
88 88 describe Hash do
89 89 subject { { :a => 7, :b => 5 } }
90 90
4 features/built_in_matchers/match.feature
@@ -14,7 +14,7 @@ Feature: match matcher
14 14
15 15 Scenario: string usage
16 16 Given a file named "string_match_spec.rb" with:
17   - """
  17 + """ruby
18 18 describe "a string" do
19 19 it { should match(/str/) }
20 20 it { should_not match(/foo/) }
@@ -32,7 +32,7 @@ Feature: match matcher
32 32
33 33 Scenario: regular expression usage
34 34 Given a file named "regexp_match_spec.rb" with:
35   - """
  35 + """ruby
36 36 describe /foo/ do
37 37 it { should match("food") }
38 38 it { should_not match("drinks") }
6 features/built_in_matchers/operators.feature
@@ -26,7 +26,7 @@ Feature: operator matchers
26 26
27 27 Scenario: numeric operator matchers
28 28 Given a file named "numeric_operator_matchers_spec.rb" with:
29   - """
  29 + """ruby
30 30 describe 18 do
31 31 it { should == 18 }
32 32 it { should be < 20 }
@@ -87,7 +87,7 @@ Feature: operator matchers
87 87
88 88 Scenario: string operator matchers
89 89 Given a file named "string_operator_matchers_spec.rb" with:
90   - """
  90 + """ruby
91 91 describe "Strawberry" do
92 92 it { should == "Strawberry" }
93 93 it { should be < "Tomato" }
@@ -178,7 +178,7 @@ Feature: operator matchers
178 178
179 179 Scenario: array operator matchers
180 180 Given a file named "array_operator_matchers_spec.rb" with:
181   - """
  181 + """ruby
182 182 describe [1, 2, 3] do
183 183 it { should == [1, 2, 3] }
184 184 it { should_not == [1, 3, 2] }
10 features/built_in_matchers/predicates.feature
@@ -38,7 +38,7 @@ Feature: predicate matchers
38 38
39 39 Scenario: should be_zero (based on Fixnum#zero?)
40 40 Given a file named "should_be_zero_spec.rb" with:
41   - """
  41 + """ruby
42 42 describe 0 do
43 43 it { should be_zero }
44 44 end
@@ -53,7 +53,7 @@ Feature: predicate matchers
53 53
54 54 Scenario: should_not be_empty (based on Array#empty?)
55 55 Given a file named "should_not_be_empty_spec.rb" with:
56   - """
  56 + """ruby
57 57 describe [1, 2, 3] do
58 58 it { should_not be_empty }
59 59 end
@@ -68,7 +68,7 @@ Feature: predicate matchers
68 68
69 69 Scenario: should have_key (based on Hash#has_key?)
70 70 Given a file named "should_have_key_spec.rb" with:
71   - """
  71 + """ruby
72 72 describe Hash do
73 73 subject { { :foo => 7 } }
74 74 it { should have_key(:foo) }
@@ -81,7 +81,7 @@ Feature: predicate matchers
81 81
82 82 Scenario: should_not have_all_string_keys (based on custom #has_all_string_keys? method)
83 83 Given a file named "should_not_have_all_string_keys_spec.rb" with:
84   - """
  84 + """ruby
85 85 class Hash
86 86 def has_all_string_keys?
87 87 keys.all? { |k| String === k }
@@ -106,7 +106,7 @@ Feature: predicate matchers
106 106
107 107 Scenario: matcher arguments are passed on to the predicate method
108 108 Given a file named "predicate_matcher_argument_spec.rb" with:
109   - """
  109 + """ruby
110 110 class Fixnum
111 111 def multiple_of?(x)
112 112 (self % x).zero?
4 features/built_in_matchers/respond_to.feature
@@ -22,7 +22,7 @@ Feature: respond_to matcher
22 22
23 23 Scenario: basic usage
24 24 Given a file named "respond_to_matcher_spec.rb" with:
25   - """
  25 + """ruby
26 26 describe "a string" do
27 27 it { should respond_to(:length) }
28 28 it { should respond_to(:hash, :class, :to_s) }
@@ -53,7 +53,7 @@ Feature: respond_to matcher
53 53
54 54 Scenario: specify arguments
55 55 Given a file named "respond_to_matcher_argument_checking_spec.rb" with:
56   - """
  56 + """ruby
57 57 describe 7 do
58 58 it { should respond_to(:zero?).with(0).arguments }
59 59 it { should_not respond_to(:zero?).with(1).argument }
2  features/built_in_matchers/satisfy.feature
@@ -13,7 +13,7 @@ Feature: satisfy matcher
13 13
14 14 Scenario: basic usage
15 15 Given a file named "satisfy_matcher_spec.rb" with:
16   - """
  16 + """ruby
17 17 describe 10 do
18 18 it { should satisfy { |v| v > 5 } }
19 19 it { should_not satisfy { |v| v > 15 } }
4 features/built_in_matchers/start_with.feature
@@ -9,7 +9,7 @@ Feature: start_with matcher
9 9
10 10 Scenario: with a string
11 11 Given a file named "example_spec.rb" with:
12   - """
  12 + """ruby
13 13 describe "this string" do
14 14 it { should start_with "this" }
15 15 it { should_not start_with "that" }
@@ -27,7 +27,7 @@ Feature: start_with matcher
27 27
28 28 Scenario: with an array
29 29 Given a file named "example_spec.rb" with:
30   - """
  30 + """ruby
31 31 describe [0, 1, 2, 3, 4] do
32 32 it { should start_with 0 }
33 33 it { should start_with(0, 1)}
6 features/built_in_matchers/throw_symbol.feature
@@ -16,7 +16,7 @@ Feature: throw_symbol matcher
16 16
17 17 Scenario: basic usage
18 18 Given a file named "throw_symbol_matcher_spec.rb" with:
19   - """
  19 + """ruby
20 20 describe "throw" do
21 21 specify { expect { throw :foo }.to throw_symbol }
22 22 specify { expect { throw :bar, 7 }.to throw_symbol }
@@ -37,7 +37,7 @@ Feature: throw_symbol matcher
37 37
38 38 Scenario: specify thrown symbol
39 39 Given a file named "throw_symbol_matcher_spec.rb" with:
40   - """
  40 + """ruby
41 41 describe "throw symbol" do
42 42 specify { expect { throw :foo }.to throw_symbol(:foo) }
43 43 specify { expect { throw :foo, 7 }.to throw_symbol(:foo) }
@@ -61,7 +61,7 @@ Feature: throw_symbol matcher
61 61
62 62 Scenario: specify thrown symbol and argument
63 63 Given a file named "throw_symbol_argument_matcher_spec.rb" with:
64   - """
  64 + """ruby
65 65 describe "throw symbol with argument" do
66 66 specify { expect { throw :foo, 7 }.to throw_symbol(:foo, 7) }
67 67 specify { expect { throw :foo, 8 }.to_not throw_symbol(:foo, 7) }
4 features/built_in_matchers/types.feature
@@ -17,7 +17,7 @@ Feature: specify types of objects
17 17
18 18 Scenario: be_(a_)kind_of matcher
19 19 Given a file named "be_kind_of_matcher_spec.rb" with:
20   - """
  20 + """ruby
21 21 module MyModule; end
22 22
23 23 class Fixnum
@@ -70,7 +70,7 @@ Feature: specify types of objects
70 70
71 71 Scenario: be_(an_)instance_of matcher
72 72 Given a file named "be_instance_of_matcher_spec.rb" with:
73   - """
  73 + """ruby
74 74 module MyModule; end
75 75
76 76 class Fixnum
10 features/built_in_matchers/yield.feature
@@ -24,7 +24,7 @@ Feature: yield matchers
24 24
25 25 Background:
26 26 Given a file named "my_class.rb" with:
27   - """
  27 + """ruby
28 28 class MyClass
29 29 def self.yield_once_with(*args)
30 30 yield *args
@@ -41,7 +41,7 @@ Feature: yield matchers
41 41
42 42 Scenario: yield_control matcher
43 43 Given a file named "yield_control_spec.rb" with:
44   - """
  44 + """ruby
45 45 require './my_class'
46 46
47 47 describe "yield_control matcher" do
@@ -61,7 +61,7 @@ Feature: yield matchers
61 61
62 62 Scenario: yield_with_args matcher
63 63 Given a file named "yield_with_args_spec.rb" with:
64   - """
  64 + """ruby
65 65 require './my_class'
66 66
67 67 describe "yield_with_args matcher" do
@@ -94,7 +94,7 @@ Feature: yield matchers
94 94
95 95 Scenario: yield_with_no_args matcher
96 96 Given a file named "yield_with_no_args_spec.rb" with:
97   - """
  97 + """ruby
98 98 require './my_class'
99 99
100 100 describe "yield_with_no_args matcher" do
@@ -117,7 +117,7 @@ Feature: yield matchers
117 117
118 118 Scenario: yield_successive_args matcher
119 119 Given a file named "yield_successive_args_spec.rb" with:
120   - """
  120 + """ruby
121 121 def array
122 122 [1, 2, 3]
123 123 end
4 features/custom_matchers/access_running_example.feature
@@ -11,7 +11,7 @@ Feature: access running example
11 11
12 12 Scenario: call method defined on example from matcher
13 13 Given a file named "example_spec.rb" with:
14   - """
  14 + """ruby
15 15 RSpec::Matchers.define :bar do
16 16 match do |_|
17 17 foo == "foo"
@@ -33,7 +33,7 @@ Feature: access running example
33 33
34 34 Scenario: call method _not_ defined on example from matcher
35 35 Given a file named "example_spec.rb" with:
36   - """
  36 + """ruby
37 37 RSpec::Matchers.define :bar do
38 38 match do |_|
39 39 foo == "foo"
2  features/custom_matchers/define_diffable_matcher.feature
@@ -7,7 +7,7 @@ Feature: define diffable matcher
7 7 @wip
8 8 Scenario: define a diffable matcher
9 9 Given a file named "diffable_matcher_spec.rb" with:
10   - """
  10 + """ruby
11 11 RSpec::Matchers.define :be_just_like do |expected|
12 12 match do |actual|
13 13 actual == expected
24 features/custom_matchers/define_matcher.feature
@@ -6,7 +6,7 @@ Feature: define matcher
6 6
7 7 Scenario: define a matcher with default messages
8 8 Given a file named "matcher_with_default_message_spec.rb" with:
9   - """
  9 + """ruby
10 10 require 'rspec/expectations'
11 11
12 12 RSpec::Matchers.define :be_a_multiple_of do |expected|
@@ -48,7 +48,7 @@ Feature: define matcher
48 48
49 49 Scenario: overriding the failure_message_for_should
50 50 Given a file named "matcher_with_failure_message_spec.rb" with:
51   - """
  51 + """ruby
52 52 require 'rspec/expectations'
53 53
54 54 RSpec::Matchers.define :be_a_multiple_of do |expected|
@@ -72,7 +72,7 @@ Feature: define matcher
72 72
73 73 Scenario: overriding the failure_message_for_should_not
74 74 Given a file named "matcher_with_failure_for_message_spec.rb" with:
75   - """
  75 + """ruby
76 76 require 'rspec/expectations'
77 77
78 78 RSpec::Matchers.define :be_a_multiple_of do |expected|
@@ -96,7 +96,7 @@ Feature: define matcher
96 96
97 97 Scenario: overriding the description
98 98 Given a file named "matcher_overriding_description_spec.rb" with:
99   - """
  99 + """ruby
100 100 require 'rspec/expectations'
101 101
102 102 RSpec::Matchers.define :be_a_multiple_of do |expected|
@@ -124,7 +124,7 @@ Feature: define matcher
124 124
125 125 Scenario: with no args
126 126 Given a file named "matcher_with_no_args_spec.rb" with:
127   - """
  127 + """ruby
128 128 require 'rspec/expectations'
129 129
130 130 RSpec::Matchers.define :have_7_fingers do
@@ -148,7 +148,7 @@ Feature: define matcher
148 148
149 149 Scenario: with multiple args
150 150 Given a file named "matcher_with_multiple_args_spec.rb" with:
151   - """
  151 + """ruby
152 152 require 'rspec/expectations'
153 153
154 154 RSpec::Matchers.define :be_the_sum_of do |a,b,c,d|
@@ -168,7 +168,7 @@ Feature: define matcher
168 168
169 169 Scenario: with helper methods
170 170 Given a file named "matcher_with_internal_helper_spec.rb" with:
171   - """
  171 + """ruby
172 172 require 'rspec/expectations'
173 173
174 174 RSpec::Matchers.define :have_same_elements_as do |sample|
@@ -193,7 +193,7 @@ Feature: define matcher
193 193
194 194 Scenario: scoped in a module
195 195 Given a file named "scoped_matcher_spec.rb" with:
196   - """
  196 + """ruby
197 197 require 'rspec/expectations'
198 198
199 199 module MyHelpers
@@ -225,7 +225,7 @@ Feature: define matcher
225 225
226 226 Scenario: scoped in an example group
227 227 Given a file named "scoped_matcher_spec.rb" with:
228   - """
  228 + """ruby
229 229 require 'rspec/expectations'
230 230
231 231 describe "group with matcher" do
@@ -259,7 +259,7 @@ Feature: define matcher
259 259
260 260 Scenario: matcher with separate logic for should and should_not
261 261 Given a file named "matcher_with_separate_should_not_logic_spec.rb" with:
262   - """
  262 + """ruby
263 263 RSpec::Matchers.define :contain do |*expected|
264 264 match_for_should do |actual|
265 265 expected.all? { |e| actual.include?(e) }
@@ -287,7 +287,7 @@ Feature: define matcher
287 287
288 288 Scenario: use define_method to create a helper method with access to matcher params
289 289 Given a file named "define_method_spec.rb" with:
290   - """
  290 + """ruby
291 291 RSpec::Matchers.define :be_a_multiple_of do |expected|
292 292 define_method :is_multiple? do |actual|
293 293 actual % expected == 0
@@ -312,7 +312,7 @@ Feature: define matcher
312 312
313 313 Scenario: include a module with helper methods in the matcher
314 314 Given a file named "include_module_spec.rb" with:
315   - """
  315 + """ruby
316 316 module MatcherHelpers
317 317 def is_multiple?(actual, expected)
318 318 actual % expected == 0
2  features/custom_matchers/define_matcher_outside_rspec.feature
@@ -6,7 +6,7 @@ Feature: define matcher outside rspec
6 6
7 7 Scenario: define a matcher with default messages
8 8 Given a file named "test_multiples.rb" with:
9   - """
  9 + """ruby
10 10 require "rspec/expectations"
11 11 require "test/unit"
12 12
2  features/custom_matchers/define_matcher_with_fluent_interface.feature
@@ -4,7 +4,7 @@ Feature: define matcher with fluent interface
4 4
5 5 Scenario: chained method with argumetn
6 6 Given a file named "between_spec.rb" with:
7   - """
  7 + """ruby
8 8 RSpec::Matchers.define :be_bigger_than do |first|
9 9 match do |actual|
10 10 (actual > first) && (actual < @second)
2  features/customized_message.feature
@@ -6,7 +6,7 @@ Feature: customized message
6 6
7 7 Scenario: customize failure message
8 8 Given a file named "example_spec.rb" with:
9   - """
  9 + """ruby
10 10 describe Array do
11 11 context "when created with `new`" do
12 12 it "is empty" do
8 features/diffing.feature
@@ -4,7 +4,7 @@ Feature: diffing
4 4
5 5 Scenario: diff for a multiline string
6 6 Given a file named "example_spec.rb" with:
7   - """
  7 + """ruby
8 8 describe "a multiline string" do
9 9 it "is like another string" do
10 10 expected = <<-EXPECTED
@@ -34,7 +34,7 @@ Feature: diffing
34 34
35 35 Scenario: diff for a multiline string and a regexp
36 36 Given a file named "example_spec.rb" with:
37   - """
  37 + """ruby
38 38 describe "a multiline string" do
39 39 it "is like another string" do
40 40 expected = /expected/m
@@ -60,7 +60,7 @@ Feature: diffing
60 60
61 61 Scenario: no diff for a single line strings
62 62 Given a file named "example_spec.rb" with:
63   - """
  63 + """ruby
64 64 describe "a single line string" do
65 65 it "is like another string" do
66 66 expected = "this string"
@@ -74,7 +74,7 @@ Feature: diffing
74 74
75 75 Scenario: no diff for numbers
76 76 Given a file named "example_spec.rb" with:
77   - """
  77 + """ruby
78 78 describe "a number" do
79 79 it "is like another number" do
80 80 1.should eq(2)
4 features/implicit_docstrings.feature
@@ -6,7 +6,7 @@ Feature: implicit docstrings
6 6
7 7 Scenario: run passing examples
8 8 Given a file named "implicit_docstrings_spec.rb" with:
9   - """
  9 + """ruby
10 10 describe "Examples with no docstrings generate their own:" do
11 11
12 12 specify { 3.should be < 5 }
@@ -26,7 +26,7 @@ Feature: implicit docstrings
26 26
27 27 Scenario: run failing examples
28 28 Given a file named "failing_implicit_docstrings_spec.rb" with:
29   - """
  29 + """ruby
30 30 describe "Failing examples with no descriptions" do
31 31
32 32 # description is auto-generated as "should equal(5)" based on the last #should
2  features/test_frameworks/test_unit.feature
@@ -7,7 +7,7 @@ Feature: Test::Unit integration
7 7
8 8 Scenario: Basic Test::Unit usage
9 9 Given a file named "rspec_expectations_test.rb" with:
10   - """
  10 + """ruby
11 11 require 'test/unit'
12 12 require 'rspec/expectations'
13 13

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.