CSS tweaks and some tests

This commit is contained in:
Skud
2013-08-05 11:08:17 +10:00
parent 749a9b8fdc
commit c4e9683fe1
5 changed files with 26 additions and 3 deletions

View File

@@ -98,3 +98,7 @@ h2 {
border-left: 1px solid darken(@beige, 10%);
padding-left: 1em;
}
.homepage-members:nth-child(odd) {
margin-left: 0px
}

View File

@@ -3,7 +3,7 @@
.row-fluid
- @interesting_members.first(6).each do |m|
.span6
.span6.homepage-members
.row-fluid{:style => 'padding-bottom: 1em'}
.span3
= render :partial => "members/image_with_popover", :locals => { :member => m }

View File

@@ -5,7 +5,7 @@
= render :partial => "layouts/header"
.container
.row
.row-fluid
.span12
- if content_for?(:title)
%h1= yield(:title)

View File

@@ -1,5 +1,5 @@
- plantings.each do |p|
.row
.row-fluid
.span2{:style => 'padding-bottom: 6px'}
= render :partial => 'plantings/image_with_popover', :locals => { :planting => p }
.span10

View File

@@ -0,0 +1,19 @@
require 'spec_helper'
describe "crops/_popover" do
before(:each) do
@tomato = FactoryGirl.create(:tomato)
@sn = FactoryGirl.create(:solanum_lycopersicum, :crop => @tomato)
@planting = FactoryGirl.create(:planting, :crop => @tomato)
render :partial => 'crops/popover', :locals => { :crop => @tomato }
end
it 'has a scientific name' do
rendered.should contain 'Solanum lycopersicum'
end
it 'shows count of plantings' do
rendered.should contain '1 time'
end
end