Top Level Namespace

Defined Under Namespace

Modules: Itesttool Classes: All, BeOneAnd, BeSorted, EqSchemaOf, IncludeWith

Instance Method Summary collapse

Instance Method Details

#_given(&b) ⇒ Object



13
# File 'lib/itesttool.rb', line 13

def _given(&b) before(:each, &b) end

#_then(&b) ⇒ Object



15
# File 'lib/itesttool.rb', line 15

def _then(&b) it(&b) end

#_when(&b) ⇒ Object



14
# File 'lib/itesttool.rb', line 14

def _when(&b) let(:res, &b) end

#all(meta) ⇒ Object



87
88
89
# File 'lib/itesttool/custom_matchers.rb', line 87

def all(meta)
  All.new(meta)
end

#be_one_and(meta) ⇒ Object



113
114
115
# File 'lib/itesttool/custom_matchers.rb', line 113

def be_one_and(meta)
  BeOneAnd.new(meta)
end

#be_sorted(order) ⇒ Object



48
49
50
# File 'lib/itesttool/custom_matchers.rb', line 48

def be_sorted(order)
  BeSorted.new(order)
end

#eq_schema_of(schema_file) ⇒ Object



5
6
7
# File 'lib/itesttool/custom_matchers.rb', line 5

def eq_schema_of(schema_file)
  EqSchemaOf.new(schema_file)
end

#feature(s, &b) ⇒ Object



11
# File 'lib/itesttool.rb', line 11

def feature(s, &b) describe(s, &b) end

#include_with(key, values) ⇒ Object



142
143
144
# File 'lib/itesttool/custom_matchers.rb', line 142

def include_with(key, values)
  IncludeWith.new(key, values)
end

#scenario(s, &b) ⇒ Object



12
# File 'lib/itesttool.rb', line 12

def scenario(s, &b) describe(s, &b) end