diff --git a/Gemfile.lock b/Gemfile.lock index 6156cca1..ec726def 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,7 +7,7 @@ GIT PATH remote: . specs: - compass (0.12.0.alpha.0.c79e997) + compass (0.12.0.alpha.0.64d0787) chunky_png (~> 1.2) fssm (>= 0.2.7) sass (~> 3.1) diff --git a/features/command_line.feature b/features/command_line.feature index 56d52abb..a783281e 100644 --- a/features/command_line.feature +++ b/features/command_line.feature @@ -200,7 +200,7 @@ Feature: Command Line | tmp/box_shadow.css | | tmp/columns.css | | tmp/fonts.css | - | images/flag-s03c3b29b35.png | + | images/flag-s*.png | And the following files are removed: | .sass-cache/ | | tmp/border_radius.css | @@ -208,7 +208,7 @@ Feature: Command Line | tmp/box_shadow.css | | tmp/columns.css | | tmp/fonts.css | - | images/flag-s03c3b29b35.png | + | images/flag-s*.png | Scenario: Watching a project for changes Given ruby supports fork diff --git a/features/step_definitions/command_line_steps.rb b/features/step_definitions/command_line_steps.rb index fd45fdc9..37b0896d 100644 --- a/features/step_definitions/command_line_steps.rb +++ b/features/step_definitions/command_line_steps.rb @@ -133,12 +133,21 @@ end Then "the following files are reported removed:" do |table| table.rows.each do |css_file| + #need to find a better way but this works for now + if css_file.first.include?('flag-s') + css_file[0] = Dir[css_file.first].sort.first + puts css_file[0] = Dir[css_file.first].sort.first + end Then %Q{a css file #{css_file.first} is reported removed} end end Then "the following files are removed:" do |table| table.rows.each do |css_file| + #need to find a better way but this works for now + if css_file.first.include?('flag-s') + css_file[0] = Dir[css_file.first].sort.first + end Then %Q{a css file #{css_file.first} is removed} end end