Permalink
Browse files

README

  • Loading branch information...
1 parent 476b4e6 commit a4694df37e8f71c940f024dd41eecb22aec53979 Elad Meidar committed Apr 3, 2010
View
13 README
@@ -0,0 +1,13 @@
+h1. Canned Cukes
+
+CannedCukes is a simple application, designed to keep track of "Cucumber":http://cuke.org features and scenarios.
+CannedCukes allows users to save their features and search through other users features, maybe to find a better story/feature specs.
+
+
+still to come:
+
+* A way to *fork* a feature/scenario from another person, keeping it completely yours
+* A gem to ease submission of features directly from an application root.
+* for god sake a better CSS.
+
+Patches are welcome, so as fellow committers.
@@ -1,9 +1,11 @@
<% title "Edit a Feature" %>
<% form_for [@user, @feature] do |f| %>
+<fieldset>
<%= error_messages_for :feature %>
<ol>
<%= render :partial => 'form', :locals => {:f => f}%>
<li><%= f.submit 'Save'%></li>
</ol>
+<fieldset>
<% end %>
@@ -1,9 +1,11 @@
<% title "Create a new Feature" %>
<% form_for [@user, @feature] do |f| %>
+<fieldset>
<%= error_messages_for :feature %>
<ol>
<%= render :partial => 'form', :locals => {:f => f}%>
<li><%= f.submit 'Create'%></li>
</ol>
+</fieldset>
<% end %>
@@ -1,16 +1,19 @@
<% title 'Scenarios'%>
<% form_tag scenarios_url, :method => :get do |f|%>
+<fieldset>
+ <legend>Search for scenarios</legend>
<ol>
- <li><label for="q">Search</label><input type="text" name="q" id="q"></li>
+ <li><label for="q">Search</label><input type="text" name="q" id="q" value="<%= params[:q] %>"></li>
<li><input type="submit" value="Submit"/></li>
</ol>
<% end -%>
+</fieldset>
<% @scenarios.each do |scenario| %>
<div class="scenario">
<h3><%= scenario.title %></h3>
<pre>
- <%= h scenario.body%>
+ <%= simple_format h(scenario.body)%>
</pre>
<%= link_to 'Download', user_feature_scenario_url(current_user, scenario.feature, scenario, :format => 'txt')%>
</div>
@@ -1,9 +1,11 @@
<% title "New Scenario"%>
<% form_for [current_user, @feature, @scenario] do |f| %>
+<fieldset>
<%= error_messages_for :scenario %>
<ol>
<%= render :partial => 'form', :locals => {:f => f}%>
<li><%= f.submit 'Create'%></li>
</ol>
-<% end %>
+</fieldset>
+<% end %>
@@ -3,7 +3,7 @@
<dt>Feature</dt>
<dd><%= @scenario.feature.title %></dd>
<dt>body</dt>
- <dd><%= h simple_format(@scenario.body) %></dd>
+ <dd><%= simple_format h(@scenario.body) %></dd>
</dl>
<%= link_to 'Go back to feature page', user_feature_url(current_user, @feature)%>
@@ -18,3 +18,5 @@
config.action_mailer.default_url_options = {:host => "example.com"}
config.gem 'restful_authentication'
+config.gem 'will_paginate'
+config.gem 'searchlogic'
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -11,12 +11,49 @@ a {
color: #0000FF;
}
+form {
+ font-size:1.1em;
+ margin-bottom:10px;
+ padding-bottom:10px;
+}
+
+fieldset {
+ background:#9F6;
+ border:1px solid #393;
+
+}
+
+fieldset legend {
+ border:1px solid #393;
+ color:white;
+ background:#393;
+ padding:10px;
+}
+
+fieldset ol {
+ list-style:none;
+ padding:5px;
+ line-height:1.5em;
+}
+
+fieldset li {
+
+}
+
+fieldset li label {
+ display:block;
+}
table {
border-collapse: collapse;
border:0;
width:100%;
}
+fieldset input[type=text], fieldset textarea {
+ border:2px solid #090;
+ padding:5px;
+}
+
table thead {
}
@@ -143,7 +180,7 @@ border-right: 1px solid #fff;
.scenario {
border:2px solid #393;
- margin-bottom:10px;
+ margin-top:20px;
padding:0px;
padding-bottom:15px;
}

0 comments on commit a4694df

Please sign in to comment.