From f0edd3ae6e1b8f8b3046a2bcf3da9f326b20fc52 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 25 Jun 2013 11:10:19 +0100 Subject: [PATCH] cucumber tests now read version from VERSION rather than having it hard coded in --- features/support/world_extensions.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/features/support/world_extensions.rb b/features/support/world_extensions.rb index f2b4a1b..2136dbc 100644 --- a/features/support/world_extensions.rb +++ b/features/support/world_extensions.rb @@ -4,7 +4,14 @@ end module ThinpWorld def tools_version - "0.1.5+" + version = '' + + File.open('VERSION', 'r') do |f| + version = f.readline + version.chomp! + end + + version end def xml_file