Module: RSpec::Rabl::Helpers

Defined in:
lib/rspec/rabl/helpers.rb

Instance Method Summary collapse

Instance Method Details

#rabl_config(local_config) ⇒ Object



17
18
19
# File 'lib/rspec/rabl/helpers.rb', line 17

def rabl_config(local_config)
  let(:_rabl_config) { RSpec.configuration.rabl_configuration.merge(local_config) }
end

#rabl_data(opts = {}, &block) ⇒ Object



4
5
6
7
# File 'lib/rspec/rabl/helpers.rb', line 4

def rabl_data(opts = {},&block)
  let(:_rabl_opts){ opts }
  let(:_rabl_data, &block)
end

#rabl_template(&block) ⇒ Object



9
10
11
# File 'lib/rspec/rabl/helpers.rb', line 9

def rabl_template(&block)
  let(:_rabl_template, &block)
end

#view_path(relative_path) ⇒ Object



13
14
15
# File 'lib/rspec/rabl/helpers.rb', line 13

def view_path(relative_path)
  let(:_view_path) { relative_path }
end