Class: Spassky::Server::TestSuiteContainer

Inherits:
Object
  • Object
show all
Defined in:
lib/spassky/server/test_suite_container.rb

Instance Method Summary collapse

Constructor Details

#initialize(contents, next_url_to_redirect_to, assert_post_back_url) ⇒ TestSuiteContainer

Returns a new instance of TestSuiteContainer.



3
4
5
6
7
# File 'lib/spassky/server/test_suite_container.rb', line 3

def initialize(contents, next_url_to_redirect_to, assert_post_back_url)
  @contents = contents
  @next_url_to_redirect_to = next_url_to_redirect_to
  @assert_post_back_url = assert_post_back_url
end

Instance Method Details

#get_file(name) ⇒ Object



9
10
11
12
# File 'lib/spassky/server/test_suite_container.rb', line 9

def get_file(name)
  file_contents = @contents[name]
  add_helpers_to_html file_contents
end