class Juxtapose::CapybaraStrategy

Attributes

context[RW]

Public Class Methods

new(context) click to toggle source
# File lib/juxtapose/strategy/capybara_strategy.rb, line 5
def initialize(context)
  self.context = context
end

Public Instance Methods

current_spec_description() click to toggle source
# File lib/juxtapose/strategy/capybara_strategy.rb, line 13
def current_spec_description
  "spec-description"
  #context.instance_variable_get('@__scenario').name
end
device_name() click to toggle source
# File lib/juxtapose/strategy/capybara_strategy.rb, line 18
def device_name
  "capybara"
end
save_current(filename) click to toggle source
# File lib/juxtapose/strategy/capybara_strategy.rb, line 22
def save_current(filename)
  Capybara.save_screenshot filename
end
spec_dir() click to toggle source
# File lib/juxtapose/strategy/capybara_strategy.rb, line 26
def spec_dir
  "spec/screens"
end
version() click to toggle source
# File lib/juxtapose/strategy/capybara_strategy.rb, line 9
def version
  @version ||= "web"
end