Sha256: eda7eb34c3b64019ac22ef2880984142da61ce312ba03241fe817fa928bd1ad0

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

#!/usr/bin/env ruby
$: << "./lib"

require "rspec"
include RSpec::Matchers

require "tapestry"
include Tapestry::Factory

class WarpTravel
  include Tapestry

  url_is    "http://localhost:9292/warp"

  text_field :warp_factor, id: 'warpInput'
  text_field :velocity,    id: 'velocityInput'
  text_field :distance,    id: 'distInput'
end

Tapestry.start_browser

on_view(WarpTravel).using_data("warp factor": 1, velocity: 1, distance: 4.3)

Tapestry.quit_browser

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tapestry-0.7.0 examples/tapestry-data-set.rb
tapestry-0.6.0 examples/tapestry-data-set.rb
tapestry-0.5.0 examples/tapestry-data-set.rb
tapestry-0.4.0 examples/tapestry-data-set.rb
tapestry-0.3.0 examples/tapestry-data-set.rb
tapestry-0.2.0 examples/tapestry-data-set.rb