Skip to content

Commit

Permalink
Added markup to get our steps to pass. Will dress it up later.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Apr 21, 2010
1 parent 2b4e048 commit 0808d57
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/features/merge.html.erb
Expand Up @@ -4,6 +4,8 @@
<%= render :partial => "legend", :locals => {:diff_from => "file", :diff_to => "file"} %>

<div class="notice">This will change the source file. Unless you use source control, you may lose all changes</div>

<span id="panel" class="ui-widget ui-widget-content ui-corner-all">
<%= link_to 'Dry-run', file_merge_feature_path(@feature, :dry_run => true) %>
<%= link_to 'Patch', file_merge_feature_path(@feature) %>
Expand Down
2 changes: 2 additions & 0 deletions app/views/features/system_merge.html.erb
Expand Up @@ -4,6 +4,8 @@
<%= render :partial => "legend", :locals => {:diff_from => "system", :diff_to => "system"} %>

<div class="notice">This will change will update the system feature</div>

<span id="panel" class="ui-widget ui-widget-content ui-corner-all">
<%= link_to 'Update', system_sync_feature_path(@feature) %>
</span>
Expand Down
6 changes: 6 additions & 0 deletions features/step_definitions/diff_legend_steps.rb
Expand Up @@ -3,4 +3,10 @@
response.should have_selector :span, attribute = {:class => legend_class} do |content|
content.should contain legend
end
end

Then /^the following notice should be displayed "([^\"]*)"$/ do |notice|
response.should have_selector :div, attribute = {:class => "notice"} do |wrapper|
wrapper.should contain notice
end
end

0 comments on commit 0808d57

Please sign in to comment.