Sha256: 872e289ba4f940b7a698748dae31bbbafc70e480e2910307c97497ec49ec2807

Contents?: true

Size: 655 Bytes

Versions: 5

Compression:

Stored size: 655 Bytes

Contents

Given "I have a keyphrase '$text'" do |text|
  @text = text
end

Given /^I have a sample BBC story$/ do
  @text = File.open('features/mocks/bbc_story.html','r') {|f| f.readlines.to_s}
end

When /^I sanitize this text$/ do
  @text = Jkl::sanitize @text
end

Then /^it should be ok$/ do
  @text.should_not be_nil
  @text.should_not == ""
end

Then "it should say '$text'" do |text|
  @text.should == text
end

Given /^I have some script tag data$/ do
  @text = <<-EOF;
  some start stuff here
  <script type="text/javascript" charset="utf-8">
   function nofunction(){var bob;}
  </script>
  <p> some para stuff here </p>
  some end stuff here
    EOF
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jakal-0.1.1 features/step_definitions/sanitize-text_steps.rb
jakal-0.1.0 features/step_definitions/sanitize-text_steps.rb
jakal-0.0.9 features/step_definitions/sanitize-text_steps.rb
jakal-0.0.8 features/step_definitions/sanitize-text_steps.rb
jakal-0.0.7 features/step_definitions/sanitize-text_steps.rb