Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed test and results display to used fixed font

  • Loading branch information...
commit 1289657f7361cc05c08e4157cea2af98a9b2dfb1 1 parent f7098a1
John Goodsen authored
View
2  MIT-LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2008 [name of plugin creator]
+Copyright (c) 2008 John Goodsen
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
3  ui/views/layouts/rcumbers.html.erb
@@ -29,9 +29,8 @@
<div class="yui-g">
<%= yield %>
</div>
-
</div>
- <div id="ft">RCumber, &copy; 2008 John Goodsen. Free for non-commercial use.</div>
+ <div id="ft">rcumber, &copy; 2008, under MIT license, John Goodsen, RADSoft.</div>
</div>
</body>
</html>
View
13 ui/views/rcumbers/_stylesheet.html.erb
@@ -14,6 +14,16 @@ font-weight: normal;
div#cucumber_index {
min-height: 600px;
}
+
+.wikistyle pre {bundle.css (line 3206)
+background-color:#F8F8FF;
+border:1px solid #DEDEDE;
+color:#444444;
+font-size:90%;
+line-height:1.5em;
+margin:1em 0pt;
+padding:0.5em;
+}
ul.rcumber_content {
min-height: 600px;
@@ -102,4 +112,5 @@ font-style: normal;
font-variant: normal;
font-weight: normal;
}
- </style>
+
+</style>
View
2  ui/views/rcumbers/index.html.erb
@@ -1,6 +1,6 @@
<div id="cucumber_index">
<h1>Rcumber</h1>
-<h2>Manage and Run your Cucumber Tests with a Rails Plugin.</h1>
+<h2>Rcumber - Rails plugin to manage Cucumber tests.</h1>
<p>You are looking at the very first version of rcumber. <br/>
Please give us feedback at github so we can turn many a mickle into a muckle.
</p>
View
36 ui/views/rcumbers/show.html.erb
@@ -1,17 +1,11 @@
-<%= link_to 'see all story tests', '/rcumber' %>
-|
-
<%= rcumber_flashes %>
<h1><%= @rcumber.name %></h1>
-
-
<script type="text/javascript">
var myTabs = new YAHOO.widget.TabView("demo");
</script>
-
<div id="demo" class="yui-navset">
<ul class="yui-nav">
<li class="<%= @rcumber.last_results.nil? ? 'selected' : '' %>">
@@ -27,27 +21,21 @@ var myTabs = new YAHOO.widget.TabView("demo");
<div class="yui-content">
<div><p>
-<%= link_to 'run this story test', rcumber_run_path(@rcumber.uid) + demo_parameters %>
-| <%= link_to 'edit this story test', edit_rcumber_path(@rcumber.uid) + demo_parameters %> <ul class="rcumber_content">
- <% @rcumber.raw_content.each do |line| %>
- <%
- line =~ /([ \t]*)(.*)/
- indents = $1.split('').collect{|x| '&nbsp;&nbsp;'}
- %>
- <%= content_tag :li, indents.to_s + line %>
- <% end %>
- </ul>
+ <%= link_to 'see all story tests', '/rcumber' %>
+ | <%= link_to 'run this story test', rcumber_run_path(@rcumber.uid) + demo_parameters %>
+ | <%= link_to 'edit this story test', edit_rcumber_path(@rcumber.uid) + demo_parameters %>
+ <pre><%= @rcumber.raw_content.to_s %></pre>
</p></div>
<% unless @rcumber.last_results.nil? %>
- <div><p>
- <h1>Test Results</h1>
- <ul>
- <% @rcumber.last_results.each do |line| %>
- <%= content_tag :li, line %>
- <% end %>
- </ul>
- </p></div>
+ <div>
+ <%= link_to 'see all story tests', '/rcumber' %>
+ | <%= link_to 'run this story test', rcumber_run_path(@rcumber.uid) + demo_parameters %>
+ | <%= link_to 'edit this story test', edit_rcumber_path(@rcumber.uid) + demo_parameters %>
+ <p>
+ <pre><%= @rcumber.last_results.to_s %></pre>
+ </p>
+ </div>
<% end %>
</div><!-- yui-content -->

0 comments on commit 1289657

Please sign in to comment.
Something went wrong with that request. Please try again.