Sha256: 7038adc9557a9b61472b8be7635e618652c4069cf81a34e8ca2003c2786b81ad

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

require 'exemplor'

eg.helpers do
  def foo() 'bar' end
end

eg "plain call" do
  Check(foo)
end

eg "whitespace after the call (seriously)" do
  Check(foo) 
end

eg "comment after the call" do
  Check(foo) # comment!
end

eg "with brackets" do
  Check(String.new('test'))
end

eg "with brackets and is" do
  Check(String.new('test')).is("test")
end

eg "with disambiguation" do
  Check(foo)['bar'].is('bar')
end

__END__

- name: plain call
  status: info (with checks)
  result: 
  - name: foo
    status: info
    result: bar
- name: whitespace after the call (seriously)
  status: info (with checks)
  result: 
  - name: foo
    status: info
    result: bar
- name: comment after the call
  status: info (with checks)
  result: 
  - name: foo
    status: info
    result: bar
- name: with brackets
  status: info (with checks)
  result: 
  - name: String.new('test')
    status: info
    result: test
- name: with brackets and is
  status: success
  result: 
  - name: String.new('test')
    status: success
    result: test
- name: with disambiguation
  status: success
  result: 
  - name: foo bar
    status: success
    result: bar

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
exemplor-2010.2.0 examples/check_parsing.rb
exemplor-2010.1.0 examples/check_parsing.rb
exemplor-2010.0.2 examples/check_parsing.rb
exemplor-2010.0.1 examples/check_parsing.rb
exemplor-2010.0.0 examples/check_parsing.rb