test env. added cucumber et al

This commit is contained in:
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 %> <%= 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/> <br/>
Tagged with: <%= @photo.tag_list %> Tagged with: <%= @photo.tag_list %>
<p><%= @photo.description %></p> <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 "Update photo details", edit_photo_path(@photo) %>
<br /><%= link_to "Back to #{@photo.album.title}", @photo.album %> <br /><%= link_to "Back to #{@photo.album.title}", @photo.album %>
<br /><%= link_to "All albums", albums_path %> <br /><%= link_to "All albums", albums_path %>

View file

@ -10,3 +10,8 @@ production:
password: changeme password: changeme
database: gallery_production 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

@ -26,3 +26,8 @@ config.action_mailer.delivery_method = :test
# This is necessary if your schema can't be completely dumped by the schema dumper, # 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 # 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"