Permalink
Browse files

Console shit.

  • Loading branch information...
1 parent 9ef6e5b commit 5f4197e902c407f696808b2a3899abababce68b5 @gilesbowkett committed Oct 3, 2008
Showing with 7 additions and 1 deletion.
  1. +3 −1 lib/console.erb
  2. +4 −0 spec/{erb_spec.rb → console_spec.rb}
View
4 lib/console.erb
@@ -1 +1,3 @@
-<%= to_ruby(nodes) %>
+<% nodes.each do |node| %><%= node.filename %>
+<% end %>
+<%= to_ruby(nodes) %>
View
4 spec/erb_spec.rb → spec/console_spec.rb
@@ -6,10 +6,14 @@
end
before(:all) do
@duplicated_block =<<DUPLICATE_BLOCK
+
+spec/test_data/second_file.rb
+
def bar
"something non-unique"
end
+
DUPLICATE_BLOCK
@unique_block =<<UNIQUE_BLOCK
def foo

0 comments on commit 5f4197e

Please sign in to comment.