test env. added cucumber et al

rails2
Espen Antonsen 2009-06-03 22:12:11 +02:00
parent 8bd5668d57
commit 740f4e3811
7 changed files with 47 additions and 2 deletions

View File

@ -0,0 +1,6 @@
<%= form.label :title, :Title, {:class => 'big'} %><br />
<%= form.text_field :title, {:class => 'big'} %><br />
<%= form.label :description %><br />
<%= form.text_area :description %><br />
<br />

View File

@ -0,0 +1,12 @@
<h1>Edit collection</h1>
<% form_for @collection do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Update" %>
<% end %>
<br /><%= link_to("Delete collection", { :action => "destroy", :id => @collection },
:confirm => "Are you sure you want to delete this collection?",
:method => :delete) %>
<br /><%= link_to "All collections", collections_path %>

View File

@ -0,0 +1,9 @@
<h1>New collection</h1>
<% form_for @collection do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Create" %>
<% end %>
<br /><%= link_to "All collections", collections_path %>

View File

@ -1 +1,6 @@
<h1><%= h @collection.title %></h1>
<p><%= h @collection.description %></p>
<%= render :partial => @collection.albums %>
<br /><%= link_to "Update collection", edit_collection_path(@collection) %>
<br /><%= link_to "All collections", collections_path %>

View File

@ -4,6 +4,9 @@
<br/>
Tagged with: <%= @photo.tag_list %>
<p><%= @photo.description %></p>
<% if @current_user.role.access_to("photo_note") %>
<p><%= @photo.note %></p>
<% end %>
<br /><%= link_to "Update photo details", edit_photo_path(@photo) %>
<br /><%= link_to "Back to #{@photo.album.title}", @photo.album %>
<br /><%= link_to "All albums", albums_path %>

View File

@ -9,4 +9,9 @@ production:
username: photogallery
password: changeme
database: gallery_production
socket: /var/run/mysqld/mysqld.sock
socket: /var/run/mysqld/mysqld.sock
test:
adapter: postgresql
database: gallery_test
username: gallery
password: changeme

View File

@ -25,4 +25,9 @@ config.action_mailer.delivery_method = :test
# Use SQL instead of Active Record's schema dumper when creating the test database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types
# config.active_record.schema_format = :sql
# config.active_record.schema_format = :sql
config.gem "rspec"
config.gem "rspec-rails"
config.gem "webrat"
config.gem "cucumber"