~ubuntu-branches/ubuntu/wily/cucumber/wily-proposed

« back to all changes in this revision

Viewing changes to fixtures/self_test/features/support/env.rb

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier, Antonio Terceiro, Cédric Boutillier
  • Date: 2015-06-20 16:52:32 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20150620165232-hznc8mxma08er27p
Tags: 2.0.0-1
[ Antonio Terceiro ]
* debian/cucumber.pod: fix typo in manpage (Closes: #767215)

[ Cédric Boutillier ]
* Imported Upstream version 2.0.0
* rename the file in debian/missing-source to remove -min suffix, and make
  lintian happy
* reproducibility: use last changelog date to build the manpage
* update 0004-Update_default_binary_path.patch
* drop 0001-Remove-rubygems-bundler-stuff-from-spec_helper.patch, not needed
  anymore
* build-depend on pry
* depend on ruby-cucumber-core

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
require 'base64'
2
 
begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end
3
 
$KCODE = 'u' if Cucumber::RUBY_1_8_7
4
 
 
5
 
Before('@not_used') do
6
 
  raise "Should never run"
7
 
end
8
 
 
9
 
After('@not_used') do
10
 
  raise "Should never run"
11
 
end
12
 
 
13
 
Before('@background_tagged_before_on_outline') do
14
 
  @cukes = '888'
15
 
end
16
 
 
17
 
After('@background_tagged_before_on_outline') do
18
 
  @cukes.should == '888'
19
 
end
20
 
 
21
 
After do
22
 
  png = IO.read(File.join(File.dirname(__FILE__), 'bubble_256x256.png'))
23
 
  encoded_img = Base64.encode64(png).gsub(/\n/, '')
24
 
  embed("data:image/png;base64,#{encoded_img}", 'image/png')
25
 
end
26