<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,4 +12,4 @@ nbproject
 pkg
 pkg/*
 tmp
-www/output
\ No newline at end of file
+www/output</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1 @@
 = Change Log
-    
\ No newline at end of file</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
 = merb_mart
 == Open-source e-commerce built on the Merb MVC Framework
 
-Please see README.markdown.
\ No newline at end of file
+Please see README.markdown.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -11,13 +11,13 @@ require 'merb-core'
 require 'rubigen'
 include FileUtils
 
-# Load the basic runtime dependencies; this will include 
+# Load the basic runtime dependencies; this will include
 # any plugins and therefore plugin rake tasks.
 init_env = ENV['MERB_ENV'] || 'rake'
 Merb.load_dependencies(:environment =&gt; init_env)
-     
+
 # Get Merb plugins and dependencies
-Merb::Plugins.rakefiles.each { |r| require r } 
+Merb::Plugins.rakefiles.each { |r| require r }
 
 desc &quot;start runner environment&quot;
 task :merb_env do</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1 @@
 = To-Do
-</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module Admin
 class Files &lt; Application
-  
+
   def index
     render
   end
-  
+
 end
 end # Admin</diff>
      <filename>app/controllers/admin/files.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module Admin
 class Orders &lt; Application
-  
+
   def index
     render
   end
-  
+
 end
 end # Admin</diff>
      <filename>app/controllers/admin/orders.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module Admin
 class Preferences &lt; Application
-  
+
   def index
     render
   end
-  
+
 end
 end # Admin</diff>
      <filename>app/controllers/admin/preferences.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module Admin
 class Products &lt; Application
-  
+
   def index
     render
   end
-  
+
 end
 end # Admin</diff>
      <filename>app/controllers/admin/products.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module Admin
 class Promotions &lt; Application
-  
+
   def index
     render
   end
-  
+
 end
 end # Admin</diff>
      <filename>app/controllers/admin/promotions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module Admin
 class Tags &lt; Application
-  
+
   def index
     render
   end
-  
+
 end
 end # Admin</diff>
      <filename>app/controllers/admin/tags.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 class Customers &lt; Application
-  
+
   def index
     render
   end
-  
+
 end</diff>
      <filename>app/controllers/customers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 class Exceptions &lt; Application
-  
+
   # handle NotFound exceptions (404)
   def not_found
     render :format =&gt; :html
@@ -10,4 +10,4 @@ class Exceptions &lt; Application
     render :format =&gt; :html
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>app/controllers/exceptions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 # require  'lib/authenticated_system_controller'
 require File.join(File.dirname(__FILE__), '..', '..', &quot;lib&quot;, &quot;authenticated_system&quot;, &quot;authenticated_dependencies&quot;)
 class Sessions &lt; Application
-  
+
   skip_before :login_required
-  
+
   def new
     render
   end
@@ -27,5 +27,5 @@ class Sessions &lt; Application
     reset_session
     redirect_back_or_default('/')
   end
-  
+
 end</diff>
      <filename>app/controllers/sessions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 class Store &lt; Application
-  
+
   def index
     render
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>app/controllers/store.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,18 +1,18 @@
 require File.join(File.dirname(__FILE__), '..', '..', &quot;lib&quot;, &quot;authenticated_system&quot;, &quot;authenticated_dependencies&quot;)
 class Users &lt; Application
   provides :xml
-  
+
   skip_before :login_required
-  
+
   def new
     only_provides :html
     @user = User.new(params[:user] || {})
     display @user
   end
-  
+
   def create
     cookies.delete :auth_token
-    
+
     @user = User.new(params[:user])
     if @user.save
       redirect_back_or_default('/')
@@ -20,7 +20,7 @@ class Users &lt; Application
       render :new
     end
   end
-  
+
   def activate
     self.current_user = User.find_activated_authenticated_model(params[:activation_code])
     if logged_in? &amp;&amp; !current_user.active?</diff>
      <filename>app/controllers/users.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@ module FilesHelper
 
 end
 end # Admin
-end
\ No newline at end of file
+end</diff>
      <filename>app/helpers/admin/files_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@ module OrdersHelper
 
 end
 end # Admin
-end
\ No newline at end of file
+end</diff>
      <filename>app/helpers/admin/orders_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@ module ProductsHelper
 
 end
 end # Admin
-end
\ No newline at end of file
+end</diff>
      <filename>app/helpers/admin/products_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@ module PromotionsHelper
 
 end
 end # Admin
-end
\ No newline at end of file
+end</diff>
      <filename>app/helpers/admin/promotions_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@ module SectionsHelper
 
 end
 end # Admin
-end
\ No newline at end of file
+end</diff>
      <filename>app/helpers/admin/sections_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@ module TagsHelper
 
 end
 end # Admin
-end
\ No newline at end of file
+end</diff>
      <filename>app/helpers/admin/tags_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ module Merb
     module CustomersHelper
 
     end
-end
\ No newline at end of file
+end</diff>
      <filename>app/helpers/customers_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Merb
   module GlobalHelpers
-    # helpers defined here available to all views.  
+    # helpers defined here available to all views.
   end
 end</diff>
      <filename>app/helpers/global_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,13 +1,13 @@
 class UserMailer &lt; Merb::MailController
-  
+
   def signup_notification
     @user = params[:user]
     render_mail
   end
-  
+
   def activation_notification
     @user = params[:user]
     render_mail
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>app/mailers/user_mailer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-&lt;%= catch_content :for_layout %&gt;
\ No newline at end of file
+&lt;%= catch_content :for_layout %&gt;</diff>
      <filename>app/mailers/views/layout/application.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-&lt;%= catch_content :for_layout %&gt;
\ No newline at end of file
+&lt;%= catch_content :for_layout %&gt;</diff>
      <filename>app/mailers/views/layout/application.text.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-Your email has been authenticated &lt;%= @user.login %&gt;
\ No newline at end of file
+Your email has been authenticated &lt;%= @user.login %&gt;</diff>
      <filename>app/mailers/views/user_mailer/activation_notification.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-Your email has been authenticated &lt;%= @user.login %&gt;
\ No newline at end of file
+Your email has been authenticated &lt;%= @user.login %&gt;</diff>
      <filename>app/mailers/views/user_mailer/activation_notification.text.erb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@ Your account has been created.
 
 Visit this url to activate your account:
 
-  &lt;%= url(:user_activation, :activation_code =&gt; @user.activation_code) %&gt;
\ No newline at end of file
+  &lt;%= url(:user_activation, :activation_code =&gt; @user.activation_code) %&gt;</diff>
      <filename>app/mailers/views/user_mailer/signup_notification.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@ Your account has been created.
 
 Visit this url to activate your account:
 
-  &lt;%= url(:user_activation, :activation_code =&gt; @user.activation_code) %&gt;
\ No newline at end of file
+  &lt;%= url(:user_activation, :activation_code =&gt; @user.activation_code) %&gt;</diff>
      <filename>app/mailers/views/user_mailer/signup_notification.text.erb</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,7 @@ class Address
   property :address1,     String, :length =&gt; 200, :nullable =&gt; false
   property :address2,     String, :length =&gt; 200
   property :city,         String, :length =&gt; 50
-  property :postal_code,  String, :length =&gt; 10 
+  property :postal_code,  String, :length =&gt; 10
   property :state_id,     Fixnum  # foreign-key
   property :country_code, String  # foreign-key
 
@@ -38,4 +38,4 @@ class Address
     &quot;#{self.first_name} #{self.last_name}&quot;
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/address.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,9 +3,9 @@
 # ISO 3166-1 geographic code.
 #
 class Country
-  
+
   include DataMapper::Resource
-  
+
   property :code, String, :key =&gt; true, :length =&gt; 2     # ISO 3166-1 alpha-2
   property :name, String, :length =&gt; 100,  :nullable =&gt; false, :unique =&gt; true
 
@@ -16,4 +16,4 @@ class Country
 
   alias :provinces :states
 
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/country.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 module Mart
   class AbstractUpload
-  
+
     include DataMapper::Resource
 
     property :id,           Fixnum, :serial =&gt; true
@@ -18,7 +18,7 @@ module Mart
     def extension
       filename.split('.').last
     end
-    
+
     def relative_path
       filename # TODO
     end</diff>
      <filename>app/models/mart/abstract_upload.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require 'dm-validations'
 module Mart
   module Accounts
     class AbstractAccount
-  
+
       include DataMapper::Resource
       include DataMapper::Validate
       require 'ezcrypto'
@@ -12,14 +12,14 @@ module Mart
       property :type,         Class   # single-table inheritance
       property :order_id,     Fixnum  # foreign-key
       property :customer_id,  Fixnum  # foreign-key
-    
+
       has 1, :order
       belongs_to :customer #, :accessor =&gt; :protected
 
       def self.months
         (1..12).to_a
       end
-      
+
       def self.years
         year = Date.today.year
         years = Array.new
@@ -31,4 +31,4 @@ module Mart
 
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/accounts/abstract_account.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@ module Mart
   module Accounts
     class BankAccount &lt; AbstractAccount
 
-      #property :account_subtype,  DataMapper::Types::Enum    
+      #property :account_subtype,  DataMapper::Types::Enum
       property :account_number,   String
       property :routing_number,   String, :length =&gt; 20
       property :bank_name,        String, :length =&gt; 50
-    
+
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/accounts/bank_account.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module Mart
   module Accounts
     class CreditCardAccount &lt; Accounts::AbstractAccount
-    
+
       property :cc_number,        String
       property :expiration_month, Fixnum, :length =&gt; 2
       property :expiration_year,  Fixnum, :length =&gt; 4
@@ -9,4 +9,4 @@ module Mart
 
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/accounts/credit_card_account.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module Mart
   module Accounts
     class GoogleCheckoutAccount &lt; AbstractAccount
-  
+
       # TODO: Implement Me
-  
+
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/accounts/google_checkout_account.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,4 +6,4 @@ module Mart
 
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/accounts/paypal_account.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ module Mart
   class Asset &lt; AbstractUpload
 
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/asset.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,9 +2,9 @@ require 'dm-validations'
 
 module Mart
   class Customer
-  
+
     include DataMapper::Resource
-  
+
     property :id,            Fixnum,  :serial =&gt; true
     property :username,      String,  :length =&gt; 50
     property :email_address, String,  :length =&gt; 50, :nullable =&gt; false, :index =&gt; :unique
@@ -27,4 +27,4 @@ module Mart
     end
 
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/customer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,14 +3,14 @@ require &quot;bigdecimal&quot;
 module Mart
   module Customers
     class Cart
-  
+
       attr_reader :items, :shipping_cost, :tax, :total
-  
+
       # Initializes the shopping cart
       def initialize
         empty!
       end
-  
+
       # Empties or initializes the cart
       def empty!
         @items = []
@@ -18,15 +18,15 @@ module Mart
         @total = 0.0
         @shipping_cost = 0.0
       end
-  
+
       def tax_cost
         @tax * @total
       end
-  
+
       def empty?
         @items.length == 0
       end
-  
+
       # Returns the total price of our cart
       def total
         @total = 0.0
@@ -41,7 +41,7 @@ module Mart
       def line_items_total
         total
       end
-  
+
       # Adds a product to our shopping cart
       def add_product(product, quantity=1)
         item = @items.find { |i| i.product_id == product.id }
@@ -55,7 +55,7 @@ module Mart
            @items &lt;&lt; item
          end
       end
-  
+
       # Removes all quantities of product from our cart
       def remove_product(product, quantity=nil)
         item = @items.find { |i| i.product_id == product.id }
@@ -70,7 +70,7 @@ module Mart
           end
         end
       end
-  
+
       # Checks inventory of products, and removes them if
       # they're out of stock.
       #
@@ -90,7 +90,7 @@ module Mart
         end
         return removed_items
       end
-  
+
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/customers/cart.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,18 +1,18 @@
 module Mart
   module Customers
     class WishlistItem
-  
+
       include DataMapper::Resource
       include DataMapper::Validate
-  
+
       property :id,             Fixnum,  :serial =&gt; true
       property :created_on,     DateTime
       property :customer_id,    Fixnum  # foreign-key
       property :store_item_id,  Fixnum  # foreign-key
-      
+
       belongs_to :customer
       belongs_to :store_item
-      
+
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/customers/wishlist_item.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module Mart
   class Image &lt; AbstractUpload
 
     IMAGE_EXTENSIONS = ['gif', 'jpg', 'jpeg', 'png', 'bmp']
-    
+
     property :width,      Fixnum, :default =&gt; 0, :nullable =&gt; false
     property :height,     Fixnum, :default =&gt; 0, :nullable =&gt; false
 
@@ -10,4 +10,4 @@ module Mart
     #has n, :products, :through =&gt; :product_images ## FIXME
 
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require 'dm-validations'
 
 module Mart
   class Order
-  
+
     include DataMapper::Resource
 
     property :id,            Fixnum,  :serial =&gt; true
@@ -22,20 +22,20 @@ module Mart
     property :order_shipping_type_id, Fixnum  # foreign-key
     property :status_code_id,Fixnum           # foreign-key
     property :promotion_id,  Fixnum           # foreign-key
-  
+
     has 1..n, :line_items,       :class_name =&gt; 'Orders::LineItem' #, :dependent =&gt; :destroy
     has 1,    :billing_address,  :class_name =&gt; 'Address' #, :foreign_key =&gt; 'billing_address_id'
     has 1,    :shipping_address, :class_name =&gt; 'Address' #, :foreign_key =&gt; 'shipping_address_id'
-  
+
     belongs_to :account
     belongs_to :customer
     belongs_to :order_shipping_type
     belongs_to :status_code,     :class_name =&gt; 'Orders::StatusCode'
     belongs_to :promotion
-  
+
     attr_accessor :promotion_code
-  
+
     validates_present :order_number
-  
+
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/order.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require &quot;bigdecimal&quot;
 module Mart
   module Orders
     class LineItem
-  
+
       include DataMapper::Resource
 
       property :id,         Fixnum,     :serial =&gt; true
@@ -12,10 +12,10 @@ module Mart
       property :name,       String
       property :product_id, Fixnum    ## FIXME: should not be both product_id + store_item_id
       property :store_item_id, Fixnum # foreign-key
-  
+
       belongs_to :product     ## FIXME: should not be both product_id + store_item_id
       belongs_to :store_item
-  
+
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/orders/line_item.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,14 @@
 module Mart
   module Orders
     class StatusCode
-  
+
       include DataMapper::Resource
-  
+
       property :id,   Fixnum, :serial =&gt; true
       property :name, String, :length =&gt; 30, :nullable =&gt; false
-  
+
       has n, :orders
-  
+
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/orders/status_code.rb</filename>
    </modified>
    <modified>
      <diff>@@ -27,4 +27,4 @@ module Mart
 
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/shipping/type.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,7 @@ module Mart
       property :order_shipping_type_id, Fixnum  # foreign-key
 
       belongs_to :type
-  
+
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/shipping/weight.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,12 +21,12 @@ module Mart
       property :weight,         Float,                  :default =&gt; 0.0,    :nullable =&gt; false
       property :is_discontinued, TrueClass,             :default =&gt; false
       property :type,           Class    # single-table inheritance
-      
+
       has n, :line_items,     :class_name =&gt; &quot;Mart::Orders::LineItem&quot;
       has n, :wishlist_items, :class_name =&gt; &quot;Mart::Customers::WishlistItem&quot; #, :dependent =&gt; :destroy
-      
+
       validates_present :name, :code
-      
+
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/store/abstract_item.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,15 +8,15 @@ module Mart
         #:through =&gt; :product_images,
         #:order =&gt; &quot;-product_images.rank DESC&quot;,
         #:dependent =&gt; :destroy
-  
+
       many_to_many :related_products,
         :class_name =&gt; 'Product' #,
         #:join_table =&gt; 'related_products',
         #:association_foreign_key =&gt; 'related_id',
         #:foreign_key =&gt; 'product_id'
-  
+
       many_to_many :tags
-  
+
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/store/product.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module Mart
   module Store
     class ProductImage
-  
+
       include DataMapper::Resource
-  
+
       property :product_id, Fixnum  # foreign-key
       property :image_id,   Fixnum  # foreign-key
       property :rank,       Fixnum
@@ -13,4 +13,4 @@ module Mart
 
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/store/product_image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,15 +4,15 @@ require 'dm-validations'
 module Mart
   module Store
     class Promotion
-  
+
       include DataMapper::Resource
 
       ## TODO: add support for subtypes:
       # - dollars off
       # - percetnage off
       # - buy n, get n free
-      # - 
-  
+      # -
+
       property :id,               Fixnum,   :serial =&gt; true
       property :code,             String,   :length =&gt; 15,                  :nullable =&gt; false
       property :discount_type,    Fixnum,                 :default =&gt; 0,    :nullable =&gt; false
@@ -25,10 +25,10 @@ module Mart
 
       has n, :orders
       belongs_to :item, :class_name =&gt; &quot;Mart::Store::AbstractItem&quot;
-  
+
       validates_present   :code, :discount_amount, :discount_type, :description
-      validates_is_number :discount_amount  
+      validates_is_number :discount_amount
 
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/store/promotion.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,11 @@
 module Mart
   module Store
     class Variation &lt; AbstractItem
-  
+
       property :product_id, Fixnum  # foreign-key
-  
+
       belongs_to :product
 
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/mart/store/variation.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 class Right
-  
+
   include DataMapper::Resource
-  
+
   property :id,         Fixnum, :serial =&gt; true
   property :name,       String
   property :controller, String
@@ -22,4 +22,4 @@ class RightRoles
   include DataMapper::Resource
   property :right_id,  Fixnum, :key =&gt; true
   property :role_id,   Fixnum, :key =&gt; true
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/right.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 class Role
-  
+
   include DataMapper::Resource
 
   property :id,          Fixnum, :serial =&gt; true
@@ -9,4 +9,4 @@ class Role
   many_to_many :users
   many_to_many :rights #, :order =&gt; 'name ASC'
 
-end
\ No newline at end of file
+end</diff>
      <filename>app/models/role.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,7 +17,7 @@ class State
   property :country_code, String, :key =&gt; true  # foreign-key, ISO 3166-1 alpha-2
   property :abbr,         String, :key =&gt; true, :length =&gt; 10
   property :name,         String,               :length =&gt; 50, :nullable =&gt; false
-  
+
   belongs_to :country
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>app/models/state.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,18 +3,18 @@ require 'dm-validations'
 # A free-form, flat taxonomoy.
 #
 class Tag
-  
+
   include DataMapper::Resource
-  
+
   property :id,         Fixnum, :serial =&gt; true
   property :name,       String, :length =&gt; 100, :nullable =&gt; false, :key =&gt; :unique
   property :rank,       Fixnum
-  
+
   validates_present   :name
   validates_is_unique :rank
-  
+
   def self.all_ordered
     all(:order =&gt; [ :name.asc ])
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>app/models/tag.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,16 +4,16 @@ require &quot;dm-aggregates&quot;
 require &quot;dm-validations&quot;
 begin
   require File.join(File.dirname(__FILE__), '..', '..', &quot;lib&quot;, &quot;authenticated_system&quot;, &quot;authenticated_dependencies&quot;)
-rescue 
+rescue
   nil
 end
 class User
-  
+
   include DataMapper::Resource
   include AuthenticatedSystem::Model
-  
+
   attr_accessor :password, :password_confirmation
-  
+
   property :id,                         Fixnum,   :serial =&gt; true
   property :login,                      String,   :unique =&gt; true
   property :email,                      String
@@ -44,11 +44,11 @@ class User
   def login=(value)
     @login = value.downcase unless value.nil?
   end
-  
+
   EMAIL_FROM = &quot;info@mysite.com&quot;
   SIGNUP_MAIL_SUBJECT = &quot;Welcome to MYSITE.  Please activate your account.&quot;
   ACTIVATE_MAIL_SUBJECT = &quot;Welcome to MYSITE&quot;
-  
+
   # Activates the user in the database
   def activate
     @activated = true
@@ -65,15 +65,15 @@ class User
                                       :user =&gt; self )
 
   end
-  
+
   #def send_signup_notification
   #  UserMailer.dispatch_and_deliver(
   #      :signup_notification,
   #    { :from =&gt; User::EMAIL_FROM,
   #      :to  =&gt; self.email,
   #      :subject =&gt; User::SIGNUP_MAIL_SUBJECT },
-  #      :user =&gt; self        
+  #      :user =&gt; self
   #  )
   #end
-  
+
 end</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-&lt;%= catch_content :layout %&gt;
\ No newline at end of file
+&lt;%= catch_content :layout %&gt;</diff>
      <filename>app/parts/views/layout/application.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-You're in index of the Customers
\ No newline at end of file
+You're in index of the Customers</diff>
      <filename>app/views/customers/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -13,10 +13,10 @@
         %h1 MerbMart
         #navigation
           %ul
-            %li 
+            %li
               =link_to 'Store', ''
       #content
         = catch_content :for_layout
       #footer
         %p Powered by MerbMart, Merb and DataMapper.
-        %p Copyright &amp;copy; 2008, Alex Coles.
\ No newline at end of file
+        %p Copyright &amp;copy; 2008, Alex Coles.</diff>
      <filename>app/views/layout/application.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-This is the frontpage of the MerbMart store.
\ No newline at end of file
+This is the frontpage of the MerbMart store.</diff>
      <filename>app/views/store/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@
   %p= text_control :email, :label =&gt; &quot;Email&quot;
   %p= password_control :password, :label =&gt; &quot;Password&quot;
   %p= password_control :password_confirmation, :label =&gt; &quot;Password Confirmation&quot;
-  %p= submit_button &quot;Sign up&quot;
\ No newline at end of file
+  %p= submit_button &quot;Sign up&quot;</diff>
      <filename>app/views/users/new.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-Autotest.add_discovery { &quot;merb&quot; }
\ No newline at end of file
+Autotest.add_discovery { &quot;merb&quot; }</diff>
      <filename>autotest.bak/discover.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,81 +2,81 @@
 require 'autotest'
 
 class Autotest::Merb &lt; Autotest
-  
+
   # +model_tests_dir+::      the directory to find model-centric tests
   # +controller_tests_dir+:: the directory to find controller-centric tests
   # +view_tests_dir+::       the directory to find view-centric tests
   # +fixtures_dir+::         the directory to find fixtures in
   attr_accessor :model_tests_dir, :controller_tests_dir, :view_tests_dir, :fixtures_dir
-  
+
   def initialize # :nodoc:
     super
-    
+
     initialize_test_layout
-    
+
     # Ignore any happenings in these directories
     add_exception %r%^\./(?:doc|log|public|tmp)%
-    
+
     # Ignore any mappings that Autotest may have already set up
     clear_mappings
-    
-    # Any changes to a file in the root of the 'lib' directory will run any 
+
+    # Any changes to a file in the root of the 'lib' directory will run any
     # model test with a corresponding name.
     add_mapping %r%^lib\/.*\.rb% do |filename, _|
       files_matching Regexp.new([&quot;^#{model_test_for(filename)}$&quot;])
     end
-    
-    # Any changes to a fixture will run corresponding view, controller and 
+
+    # Any changes to a fixture will run corresponding view, controller and
     # model tests
     add_mapping %r%^#{fixtures_dir}/(.*)s.yml% do |_, m|
       [
-        model_test_for(m[1]), 
-        controller_test_for(m[1]), 
+        model_test_for(m[1]),
+        controller_test_for(m[1]),
         view_test_for(m[1])
       ]
     end
-    
+
     # Any change to a test or test will cause it to be run
     add_mapping %r%^test/(unit|models|integration|controllers|views|functional)/.*rb$% do |filename, _|
       filename
     end
-    
+
     # Any change to a model will cause it's corresponding test to be run
     add_mapping %r%^app/models/(.*)\.rb$% do |_, m|
       model_test_for(m[1])
     end
-    
-    # Any change to the global helper will result in all view and controller 
+
+    # Any change to the global helper will result in all view and controller
     # tests being run
     add_mapping %r%^app/helpers/global_helpers.rb% do
       files_matching %r%^test/(views|functional|controllers)/.*_test\.rb$%
     end
-    
-    # Any change to a helper will run it's corresponding view and controller 
-    # tests, unless the helper is the global helper. Changes to the global 
+
+    # Any change to a helper will run it's corresponding view and controller
+    # tests, unless the helper is the global helper. Changes to the global
     # helper run all view and controller tests.
     add_mapping %r%^app/helpers/(.*)_helper(s)?.rb% do |_, m|
       if m[1] == &quot;global&quot; then
         files_matching %r%^test/(views|functional|controllers)/.*_test\.rb$%
       else
         [
-          view_test_for(m[1]), 
+          view_test_for(m[1]),
           controller_test_for(m[1])
         ]
       end
     end
-    
-    # Changes to views result in their corresponding view and controller test 
+
+    # Changes to views result in their corresponding view and controller test
     # being run
     add_mapping %r%^app/views/(.*)/% do |_, m|
       [
-        view_test_for(m[1]), 
+        view_test_for(m[1]),
         controller_test_for(m[1])
       ]
     end
-    
-    # Changes to a controller result in its corresponding test being run. If 
-    # the controller is the exception or application controller, all 
+
+    # Changes to a controller result in its corresponding test being run. If
+    # the controller is the exception or application controller, all
     # controller tests are run.
     add_mapping %r%^app/controllers/(.*)\.rb$% do |_, m|
       if [&quot;application&quot;, &quot;exception&quot;].include?(m[1])
@@ -91,16 +91,16 @@ class Autotest::Merb &lt; Autotest
       files_matching %r%^test/(controllers|views|functional)/.*_test\.rb$%
     end
 
-    # If any of the major files governing the environment are altered, run 
+    # If any of the major files governing the environment are altered, run
     # everything
     add_mapping %r%^test/test_helper.rb|config/(init|rack|environments/test.rb|database.yml)% do # FIX
       files_matching %r%^test/(unit|models|controllers|views|functional)/.*_test\.rb$%
     end
   end
-  
+
 private
 
-  # Determines the paths we can expect tests or specs to reside, as well as 
+  # Determines the paths we can expect tests or specs to reside, as well as
   # corresponding fixtures.
   def initialize_test_layout
     self.model_tests_dir      = &quot;test/unit&quot;
@@ -108,19 +108,19 @@ private
     self.view_tests_dir       = &quot;test/views&quot;
     self.fixtures_dir         = &quot;test/fixtures&quot;
   end
-  
-  # Given a filename and the test type, this method will return the 
+
+  # Given a filename and the test type, this method will return the
   # corresponding test's or spec's name.
-  # 
+  #
   # ==== Arguments
   # +filename+&lt;String&gt;:: the file name of the model, view, or controller
   # +kind_of_test+&lt;Symbol&gt;:: the type of test we that we should run
-  # 
+  #
   # ==== Returns
   # String:: the name of the corresponding test or spec
-  # 
+  #
   # ==== Example
-  # 
+  #
   #   &gt; test_for(&quot;user&quot;, :model)
   #   =&gt; &quot;user_test.rb&quot;
   #   &gt; test_for(&quot;login&quot;, :controller)
@@ -133,17 +133,17 @@ private
     name &lt;&lt; &quot;test&quot;
     return name.join(&quot;_&quot;) + &quot;.rb&quot;
   end
-  
+
   def model_test_for(filename)
     [model_tests_dir, test_for(filename, :model)].join(&quot;/&quot;)
   end
-  
+
   def controller_test_for(filename)
     [controller_tests_dir, test_for(filename, :controller)].join(&quot;/&quot;)
   end
-  
+
   def view_test_for(filename)
     [view_tests_dir, test_for(filename, :view)].join(&quot;/&quot;)
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>autotest.bak/merb.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@ Merb::Config.use { |c|
   c[:reload_classes]  = false
   c[:log_auto_flush ] = true
   c[:log_file] = Merb.log_path / 'merb_rake.log'
-}
\ No newline at end of file
+}</diff>
      <filename>config/environments/rake.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,10 @@
-#  __  __         _    __  __          _   
-# |  \/  |___ _ _| |__|  \/  |__ _ _ _| |_ 
+#  __  __         _    __  __          _
+# |  \/  |___ _ _| |__|  \/  |__ _ _ _| |_
 # | |\/| / -_) '_| '_ \ |\/| / _` | '_|  _|
 # |_|  |_\___|_| |_.__/_|  |_\__,_|_|  \__|
 #
 # Copyright (C) 2008  Alex Coles
-# 
+#
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 2 of the License, or
@@ -20,7 +20,7 @@
 #
 
 # ==== Load paths
- 
+
 # Make the app's &quot;gems&quot; directory a place where gems are loaded from
 Gem.clear_paths
 Gem.path.unshift(Merb.root / &quot;gems&quot;)
@@ -73,8 +73,8 @@ Merb::Config.use do |c|
   c[:session_store] = 'cookie'
   # c[:session_store] = 'datamapper'  ## FIXME: temporarily disabled
   # c[:use_mutex] = false             ## FIXME: disable Mutex
-  
-end  
+
+end
 
 # ==== Inflector Customization
 </diff>
      <filename>config/init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-run Merb::Rack::Application.new
\ No newline at end of file
+run Merb::Rack::Application.new</diff>
      <filename>config/rack.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,11 +16,11 @@ Merb::Router.prepare do |r|
 
   # RESTful routes
   r.resources :users
-  
+
   r.match(&quot;/login&quot;).to(:controller =&gt; &quot;Sessions&quot;, :action =&gt; &quot;create&quot;).name(:login)
   r.match(&quot;/logout&quot;).to(:controller =&gt; &quot;Sessions&quot;, :action =&gt; &quot;destroy&quot;).name(:logout)
   r.match(&quot;/users/activate/:activation_code&quot;).to(:controller =&gt; &quot;Users&quot;, :action =&gt; &quot;activate&quot;).name(:user_activation)
-  
+
   r.match('/').to(:controller =&gt; 'Store', :action =&gt; 'index')
 
   # Default administration mapping
@@ -31,12 +31,12 @@ Merb::Router.prepare do |r|
   #r.match('/blog').to(:controller =&gt; 'ContentNodes', :action =&gt; 'index')
   #r.match('/blog/section/:section_name').to(:controller =&gt; 'ContentNodes', :action =&gt; 'list_by_section')
   #r.match('/blog/:name').to(:controller =&gt; 'ContentNodes', :action =&gt; 'show_by_name')
-  
+
   #  map.connect '/store/show_by_tags/*tags',
   #    :controller =&gt; 'store',
   #    :action     =&gt; 'show_by_tags'
 
   # For things like /about_us, etc
   #r.match('/:name').to(:controller =&gt; 'ContentNodes', :action =&gt; 'show_by_name')
-  
+
 end</diff>
      <filename>config/router.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,19 +6,19 @@ module AuthenticatedSystem
       def logged_in?
         current_user != :false
       end
-    
+
       # Accesses the current user from the session.  Set it to :false if login fails
       # so that future calls do not hit the database.
       def current_user
         @current_user ||= (login_from_session || login_from_basic_auth || login_from_cookie || :false)
       end
-    
+
       # Store the given user in the session.
       def current_user=(new_user)
         session[:user] = (new_user.nil? || new_user.is_a?(Symbol)) ? nil : new_user.id
         @current_user = new_user
       end
-    
+
       # Check if the user is authorized
       #
       # Override this method in your controllers if you want to restrict access
@@ -77,14 +77,14 @@ module AuthenticatedSystem
           render &quot;Couldn't authenticate you&quot;
         end
       end
-    
+
       # Store the URI of the current request in the session.
       #
       # We can return to this location by calling #redirect_back_or_default.
       def store_location
         session[:return_to] = request.uri
       end
-    
+
       # Redirect to the URI stored by the most recent store_location call or
       # to the passed default.
       def redirect_back_or_default(default)
@@ -92,7 +92,7 @@ module AuthenticatedSystem
         session[:return_to] = nil
         redirect loc
       end
-    
+
       # Inclusion hook to make #current_user and #logged_in?
       # available as ActionView helper methods.
       # def self.included(base)
@@ -111,7 +111,7 @@ module AuthenticatedSystem
       end
 
       # Called from #current_user.  Finaly, attempt to login by an expiring token in the cookie.
-      def login_from_cookie     
+      def login_from_cookie
         user = cookies[:auth_token] &amp;&amp; User.find_authenticated_model_with_remember_token(cookies[:auth_token])
         if user &amp;&amp; user.remember_token?
           user.remember_me
@@ -119,7 +119,7 @@ module AuthenticatedSystem
           self.current_user = user
         end
       end
-    
+
       def reset_session
         session.data.each{|k,v| session.data.delete(k)}
       end
@@ -131,7 +131,7 @@ module AuthenticatedSystem
       def get_auth_data
         auth_key  = @@http_auth_headers.detect { |h| request.env.has_key?(h) }
         auth_data = request.env[auth_key].to_s.split unless auth_key.blank?
-        return auth_data &amp;&amp; auth_data[0] == 'Basic' ? Base64.decode64(auth_data[1]).split(':')[0..1] : [nil, nil] 
+        return auth_data &amp;&amp; auth_data[0] == 'Basic' ? Base64.decode64(auth_data[1]).split(':')[0..1] : [nil, nil]
       end
   end
 end</diff>
      <filename>lib/authenticated_system/authenticated_system_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,30 +1,30 @@
 
 module AuthenticatedSystem
   module Model
-    
+
     def self.included(base)
       base.send(:include, InstanceMethods)
       base.send(:extend,  ClassMethods)
       base.send(:extend,  AuthenticatedSystem::OrmMap )
     end
-    
+
     module InstanceMethods
       def authenticated?(password)
         crypted_password == encrypt(password)
-      end      
+      end
 
-      # before filter 
+      # before filter
       def encrypt_password
         return if password.blank?
         self.salt = Digest::SHA1.hexdigest(&quot;--#{Time.now.to_s}--#{login}--&quot;) if new_record?
         self.crypted_password = encrypt(password)
       end
-      
+
       # Encrypts the password with the user salt
       def encrypt(password)
         self.class.encrypt(password, salt)
       end
-      
+
       def remember_token?
         remember_token_expires_at &amp;&amp; DateTime.now &lt; DateTime.parse(remember_token_expires_at.to_s)
       end
@@ -40,7 +40,7 @@ module AuthenticatedSystem
       end
 
       # These create and unset the fields required for remembering users between browser closes
-      # Default of 2 weeks 
+      # Default of 2 weeks
       def remember_me
         remember_me_for (Merb::Const::WEEK * 2)
       end
@@ -50,7 +50,7 @@ module AuthenticatedSystem
         self.remember_token            = nil
         self.save
       end
-      
+
       # Returns true if the &lt;%= singular_name %&gt; has just been activated.
       def recently_activated?
         @activated
@@ -64,7 +64,7 @@ module AuthenticatedSystem
       def active?
         # the existence of an activation code means they have not activated yet
         activation_code.nil?
-      end      
+      end
 
       def password_required?
         crypted_password.blank? || !password.blank?
@@ -76,13 +76,13 @@ module AuthenticatedSystem
       end
 
     end
-    
+
     module ClassMethods
       # Encrypts some data with the salt.
       def encrypt(password, salt)
         Digest::SHA1.hexdigest(&quot;--#{salt}--#{password}--&quot;)
       end
-      
+
       # Authenticates a user by their login name and unencrypted password.  Returns the user or nil.
       def authenticate(login, password)
         u = find_activated_authenticated_model_with_login(login) # need to get the salt
@@ -90,6 +90,6 @@ module AuthenticatedSystem
       end
     end
 
-    
+
   end
 end</diff>
      <filename>lib/authenticated_system/authenticated_system_model.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,14 @@
 module AuthenticatedSystem
   module OrmMap
-    
+
     def find_authenticated_model_with_id(id)
       User.first(:id =&gt; id)
     end
-    
+
     def find_authenticated_model_with_remember_token(rt)
       User.first(:remember_token =&gt; rt)
     end
-    
+
     def find_activated_authenticated_model_with_login(login)
       if User.instance_methods.include?(&quot;activated_at&quot;)
         User.first(:login =&gt; login, :activated_at.not =&gt; nil)
@@ -16,19 +16,19 @@ module AuthenticatedSystem
         User.first(:login =&gt; login)
       end
     end
-    
+
     def find_activated_authenticated_model(activation_code)
       User.first(:activation_code =&gt; activation_code)
-    end  
-    
+    end
+
     def find_with_conditions(conditions)
       User.first(conditions)
     end
-    
+
     # A method to assist with specs
     def clear_database_table
       User.auto_migrate!
     end
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>lib/authenticated_system/authenticated_system_orm_map.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 module Mart
-  
- 
 
-  
-end
\ No newline at end of file
+
+
+
+end</diff>
      <filename>lib/mart.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,21 +1,21 @@
 #!/usr/bin/env ruby
-                                                               
+
 require 'rubygems'
 require 'merb-core'
 
 # this is Merb.root, change this if you have some funky setup.
 merb_root = File.expand_path(File.dirname(__FILE__) / '../')
-        
+
 # If the fcgi process runs as apache, make sure
 # we have an inlinedir set for Rubyinline action-args to work
 unless ENV[&quot;INLINEDIR&quot;] || ENV[&quot;HOME&quot;]
   tmpdir = merb_root / &quot;tmp&quot;
   unless File.directory?(tmpdir)
     Dir.mkdir(tmpdir)
-  end                
+  end
   ENV[&quot;INLINEDIR&quot;] = tmpdir
 end
-   
+
 # start merb with the fcgi adapter, add options or change the log dir here
 Merb.start(:adapter =&gt; 'fcgi',
            :merb_root =&gt; merb_root,</diff>
      <filename>public/merb.fcgi</filename>
    </modified>
    <modified>
      <diff>@@ -7,13 +7,13 @@ class Merb::Mailer
 end
 
 class Hash
-  
+
   def with( opts )
     self.merge(opts)
   end
-  
+
   def without(*args)
     self.dup.delete_if{ |k,v| args.include?(k)}
   end
-  
+
 end</diff>
      <filename>spec/authenticated_system_spec_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@ describe Admin::Files, &quot;index action&quot; do
     @controller = Admin::Files.build(fake_request)
     @controller.dispatch('index')
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/controllers/admin/files_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@ describe Admin::Orders, &quot;index action&quot; do
     @controller = Admin::Orders.build(fake_request)
     @controller.dispatch('index')
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/controllers/admin/orders_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@ describe Admin::Preferences, &quot;index action&quot; do
     @controller = Admin::Preferences.build(fake_request)
     @controller.dispatch('index')
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/controllers/admin/preferences_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@ describe Admin::Products, &quot;index action&quot; do
     @controller = Admin::Products.build(fake_request)
     @controller.dispatch('index')
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/controllers/admin/products_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@ describe Admin::Promotions, &quot;index action&quot; do
     @controller = Admin::Promotions.build(fake_request)
     @controller.dispatch('index')
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/controllers/admin/promotions_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@ describe Admin::Tags, &quot;index action&quot; do
     @controller = Admin::Tags.build(fake_request)
     @controller.dispatch('index')
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/controllers/admin/tags_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@ describe Customers, &quot;index action&quot; do
   before(:each) do
     dispatch_to(Customers, :index)
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/controllers/customers_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,42 +5,42 @@ require 'cgi'
 
 describe &quot;Sessions Controller&quot;, &quot;index action&quot; do
   include UserSpecHelper
-  
+
   before(:each) do
     User.clear_database_table
     @quentin = User.create(valid_user_hash.with(:login =&gt; &quot;quentin&quot;, :password =&gt; &quot;test&quot;, :password_confirmation =&gt; &quot;test&quot;))
     @controller = Sessions.new(fake_request)
     @quentin.activate
   end
-  
+
   it &quot;should have a route to Sessions#new from '/login'&quot; do
     request_to(&quot;/login&quot;) do |params|
       params[:controller].should == &quot;Sessions&quot;
       params[:action].should == &quot;create&quot;
-    end   
+    end
   end
-  
+
   it &quot;should route to Sessions#create from '/login' via post&quot; do
     request_to(&quot;/login&quot;, :post) do |params|
       params[:controller].should  == &quot;Sessions&quot;
       params[:action].should      == &quot;create&quot;
-    end      
+    end
   end
-  
+
   it &quot;should have a named route :login&quot; do
     @controller.url(:login).should == &quot;/login&quot;
   end
-  
+
   it &quot;should have route to Sessions#destroy from '/logout' via delete&quot; do
     request_to(&quot;/logout&quot;, :delete) do |params|
       params[:controller].should == &quot;Sessions&quot;
       params[:action].should    == &quot;destroy&quot;
-    end   
+    end
   end
-  
+
   it &quot;should route to Sessions#destroy from '/logout' via get&quot; do
     request_to(&quot;/logout&quot;) do |params|
-      params[:controller].should == &quot;Sessions&quot; 
+      params[:controller].should == &quot;Sessions&quot;
       params[:action].should     == &quot;destroy&quot;
     end
   end
@@ -51,7 +51,7 @@ describe &quot;Sessions Controller&quot;, &quot;index action&quot; do
     controller.session[:user].should == @quentin.id
     controller.should redirect_to(&quot;/&quot;)
   end
-   
+
   it 'fails login and does not redirect' do
     controller = post &quot;/login&quot;, :login =&gt; 'quentin', :password =&gt; 'bad password'
     controller.session[:user].should be_nil
@@ -68,18 +68,18 @@ describe &quot;Sessions Controller&quot;, &quot;index action&quot; do
     controller = post &quot;/login&quot;, :login =&gt; 'quentin', :password =&gt; 'test', :remember_me =&gt; &quot;1&quot;
     controller.cookies[&quot;auth_token&quot;].should_not be_nil
   end
- 
+
   it 'does not remember me' do
     controller = post &quot;/login&quot;, :login =&gt; 'quentin', :password =&gt; 'test', :remember_me =&gt; &quot;0&quot;
     controller.cookies[&quot;auth_token&quot;].should be_nil
   end
-  
+
   it 'deletes token on logout' do
     controller = get(&quot;/logout&quot;) {|request| request.stub!(:current_user).and_return(@quentin) }
     controller.cookies[&quot;auth_token&quot;].should == nil
   end
-  
-  
+
+
   it 'logs in with cookie' do
     @quentin.remember_me
     controller = get &quot;/login&quot; do |c|
@@ -91,7 +91,7 @@ describe &quot;Sessions Controller&quot;, &quot;index action&quot; do
   def auth_token(token)
     CGI::Cookie.new('name' =&gt; 'auth_token', 'value' =&gt; token)
   end
-    
+
   def cookie_for(user)
     auth_token user.remember_token
   end</diff>
      <filename>spec/controllers/sessions_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,17 +3,17 @@ require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;user_spec_helper&quot;)
 require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;authenticated_system_spec_helper&quot;)
 
 describe Users do
-  
+
   include UserSpecHelper
-  
+
   before(:each) do
     User.clear_database_table
   end
-  
+
   it 'allows signup' do
      lambda do
        controller = create_user
-       controller.should redirect      
+       controller.should redirect
      end.should change(User, :count).by(1)
    end
 
@@ -24,7 +24,7 @@ describe Users do
        controller.should respond_successfully
      end.should_not change(User, :count)
    end
-    
+
    it 'requires password on signup' do
      lambda do
        controller = create_user(:password =&gt; nil)
@@ -32,7 +32,7 @@ describe Users do
        controller.should respond_successfully
      end.should_not change(User, :count)
    end
-     
+
    it 'requires password confirmation on signup' do
      lambda do
        controller = create_user(:password_confirmation =&gt; nil)
@@ -40,7 +40,7 @@ describe Users do
        controller.should respond_successfully
      end.should_not change(User, :count)
    end
-   
+
    it 'requires email on signup' do
      lambda do
        controller = create_user(:email =&gt; nil)
@@ -48,12 +48,12 @@ describe Users do
        controller.should respond_successfully
      end.should_not change(User, :count)
    end
-   
+
    it &quot;should have a route for user activation&quot; do
      request_to(&quot;/users/activate/1234&quot;) do |params|
        params[:controller].should == &quot;Users&quot;
-       params[:action].should == &quot;activate&quot; 
-       params[:activation_code].should == &quot;1234&quot;    
+       params[:action].should == &quot;activate&quot;
+       params[:activation_code].should == &quot;1234&quot;
      end
    end
 
@@ -61,10 +61,10 @@ describe Users do
      controller = create_user(:login =&gt; &quot;aaron&quot;, :password =&gt; &quot;test&quot;, :password_confirmation =&gt; &quot;test&quot;)
      @user = controller.assigns(:user)
      User.authenticate('aaron', 'test').should be_nil
-     controller = get &quot;/users/activate/1234&quot; 
+     controller = get &quot;/users/activate/1234&quot;
      controller.should redirect_to(&quot;/&quot;)
    end
-     
+
    def create_user(options = {})
      post &quot;/users&quot;, :user =&gt; valid_user_hash.merge(options)
    end</diff>
      <filename>spec/controllers/users_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ require File.join(File.dirname(__FILE__), &quot;../..&quot;, 'spec_helper.rb')
 
 describe Merb::Admin::FilesHelper do
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/helpers/admin/files_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ require File.join(File.dirname(__FILE__), &quot;../..&quot;, 'spec_helper.rb')
 
 describe Merb::Admin::OrdersHelper do
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/helpers/admin/orders_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ require File.join(File.dirname(__FILE__), &quot;../..&quot;, 'spec_helper.rb')
 
 describe Merb::Admin::PreferencesHelper do
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/helpers/admin/preferences_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ require File.join(File.dirname(__FILE__), &quot;../..&quot;, 'spec_helper.rb')
 
 describe Merb::Admin::ProductsHelper do
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/helpers/admin/products_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ require File.join(File.dirname(__FILE__), &quot;../..&quot;, 'spec_helper.rb')
 
 describe Merb::Admin::PromotionsHelper do
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/helpers/admin/promotions_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ require File.join(File.dirname(__FILE__), &quot;../..&quot;, 'spec_helper.rb')
 
 describe Merb::Admin::TagsHelper do
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/helpers/admin/tags_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ require File.join(File.dirname(__FILE__), &quot;..&quot;, 'spec_helper.rb')
 
 describe Merb::CustomersHelper do
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/helpers/customers_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,61 +3,61 @@ require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;user_spec_helper&quot;)
 require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;authenticated_system_spec_helper&quot;)
 
 describe UserMailer do
-  
+
   def deliver(action, mail_opts= {}, opts = {})
     UserMailer.dispatch_and_deliver(action, mail_opts, opts)
     @delivery = Merb::Mailer.deliveries.last
   end
-  
+
   before(:each) do
     @u = User.new(:email =&gt; &quot;homer@simpsons.com&quot;, :login =&gt; &quot;homer&quot;, :activation_code =&gt; &quot;12345&quot;)
     @mailer_params = { :from      =&gt; &quot;info@mysite.com&quot;,
                        :to        =&gt; @u.email,
                        :subject   =&gt; &quot;Welcome to MySite.com&quot; }
   end
-  
+
   after(:each) do
     Merb::Mailer.deliveries.clear
   end
-  
+
   it &quot;should send mail to homer@simpsons.com for the signup email&quot; do
     deliver(:signup_notification, @mailer_params, :user =&gt; @u)
     @delivery.assigns(:headers).should include(&quot;to: homer@simpsons.com&quot;)
   end
-  
+
   it &quot;should send the mail from 'info@mysite.com' for the signup email&quot; do
     deliver(:signup_notification, @mailer_params, :user =&gt; @u)
     @delivery.assigns(:headers).should include(&quot;from: info@mysite.com&quot;)
   end
-  
+
   it &quot;should mention the users login in the text signup mail&quot; do
     deliver(:signup_notification, @mailer_params, :user =&gt; @u)
     @delivery.text.should include(@u.login)
   end
-  
+
   it &quot;should mention the users login in the HTML signup mail&quot; do
     deliver(:signup_notification, @mailer_params, :user =&gt; @u)
     @delivery.html.should include(@u.login)
   end
-  
+
   it &quot;should mention the activation link in the signup emails&quot; do
     deliver(:signup_notification, @mailer_params, :user =&gt; @u)
     the_url = UserMailer.new.url(:user_activation, :activation_code =&gt; @u.activation_code)
     the_url.should_not be_nil
-    @delivery.text.should include( the_url )   
+    @delivery.text.should include( the_url )
     @delivery.html.should include( the_url )
   end
-  
+
   it &quot;should send mail to homer@simpson.com for the activation email&quot; do
     deliver(:activation_notification, @mailer_params, :user =&gt; @u)
     @delivery.assigns(:headers).should include(&quot;to: homer@simpsons.com&quot;)
   end
-  
+
   it &quot;should send the mail from 'info@mysite.com' for the activation email&quot; do
     deliver(:activation_notification, @mailer_params, :user =&gt; @u)
-    @delivery.assigns(:headers).should include(&quot;from: info@mysite.com&quot;)    
+    @delivery.assigns(:headers).should include(&quot;from: info@mysite.com&quot;)
   end
-  
+
   it &quot;should mention ther users login in the text activation mail&quot; do
     deliver(:activation_notification, @mailer_params, :user =&gt; @u)
     @delivery.text.should include(@u.login)
@@ -65,6 +65,6 @@ describe UserMailer do
 
   it &quot;should mention the users login in the html activation mail&quot; do
     deliver(:activation_notification, @mailer_params, :user =&gt; @u)
-    @delivery.html.should include(@u.login)    
+    @delivery.html.should include(@u.login)
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/mailers/user_mailer_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,13 +8,13 @@ describe Address do
       address.should respond_to(:country)
       address.should respond_to(:country=)
     end
-    
+
     it &quot;should belong to a state&quot; do
       address = Address.new
       address.should respond_to(:state)
       address.should respond_to(:state=)
     end
-    
+
     it &quot;should belong to a province (alias for state)&quot; do
       #state = mock(&quot;state&quot;)
       address = Address.new
@@ -23,7 +23,7 @@ describe Address do
       #address.province = state
     end
   end
-  
+
   it &quot;should require a zip, telephone, last name, first name and address&quot; do
     address = Address.new
     address.valid?
@@ -37,7 +37,7 @@ describe Address do
     address.postal_code = &quot;10021&quot;
     address.should be_valid
   end
-  
+
   it &quot;should provide the zipcode alias for postal code&quot; do
     address1 = Address.new
     address1.postal_code = &quot;91210&quot;
@@ -46,7 +46,7 @@ describe Address do
     address2.zipcode = &quot;10004&quot;
     address2.postal_code.should == &quot;10004&quot;
   end
-  
+
   it &quot;should limit the first name to be a maximum of 50 characters&quot; do
     address = Address.new
     [3,50].each do |num|
@@ -54,12 +54,12 @@ describe Address do
       address.valid?
       address.errors.on(:first_name).should be_nil
     end
-    
+
     address.first_name = &quot;a&quot; * 51
     address.valid?
     address.errors.on(:first_name).should_not be_nil
   end
-  
+
   it &quot;should limit the last name to be a maximum of 50 characters&quot; do
     address = Address.new
     [3,50].each do |num|
@@ -67,16 +67,16 @@ describe Address do
       address.valid?
       address.errors.on(:last_name).should be_nil
     end
-    
+
     address.last_name = &quot;z&quot; * 51
     address.valid?
     address.errors.on(:last_name).should_not be_nil
   end
-  
+
   it &quot;should limit the address to a maximum of 255 characters&quot;
-  
+
   #it &quot;should not allow PO Box or variants to be entered as an address&quot;
-  
+
   it &quot;should provide a name&quot; do
     address = Address.new
     address.first_name = &quot;John&quot;
@@ -84,4 +84,4 @@ describe Address do
     address.name.should == &quot;John Doe&quot;
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/address_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ describe Country do
       country = Country.new
       country.should respond_to(:states)
     end
-    
+
     it &quot;should have many (0..*) provinces (alias for states)&quot; do
       country = Country.new
       country.should respond_to(:provinces)
@@ -23,12 +23,12 @@ describe Country do
     @country.name = &quot;Andorra&quot;
     @country.should be_valid
   end
-  
+
   it &quot;should have a name field&quot; do
     @country.valid?
     @country.errors.on(:name).should_not be_nil
   end
-  
+
   it &quot;should have a unique name field&quot; do
     country1 = Country.new(:code =&gt; &quot;FR&quot;, :name =&gt; &quot;France&quot;)
     country2 = Country.new(:code =&gt; &quot;ZZ&quot;, :name =&gt; &quot;France&quot;)
@@ -36,17 +36,17 @@ describe Country do
     country1.name = &quot;France&quot;
     country2.valid?
     country2.save.should be_false
-    country2.errors.on(:name).should_not be_nil 
+    country2.errors.on(:name).should_not be_nil
   end
-  
+
   it &quot;should have a code field&quot; do
     @country.name = &quot;Lithuania&quot;
     @country.code = &quot;LT&quot;
     @country.should be_valid
   end
-  
+
   describe &quot;finders&quot; do
-    
+
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>spec/models/country_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
 require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;spec_helper&quot; )
 
 describe Mart::AbstractUpload do
-  
+
   # UserUpload acts as an abstract class
   # see Asset and Image specs
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/abstract_upload_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,49 +7,49 @@ describe Mart::Accounts::AbstractAccount do
     it &quot;should have an order&quot;
     it &quot;should belong to a customer (OrderUser)&quot;
   end
-  
+
   it &quot;should have a list of months&quot; do
     months = Mart::Accounts::AbstractAccount.months
     months.should_not == nil
     months.empty?.should == false
     months.length.should == 12
-    
+
     months.first.should == 1
     months.at(6).should == 7
     months.last.should == 12
   end
-  
+
   it &quot;should have a list of the next 10 years&quot; do
     years = Mart::Accounts::AbstractAccount.years
     years.should_not == nil
     years.empty?.should == false
     years.length.should == 10
-    
+
     years.first.should == Date.today.year
     years.at(5).should == Date.today.year + 5
     years.last.should == Date.today.year + 9
   end
-  
+
   #it &quot;should clear personal information&quot; do
   #  order_account = Accounts::BaseAccount.new
   #  order_account.cc_number = '02301033012102010102'
-    
+
   #end
-  
+
   #it &quot;should crypt cc_number&quot; do
   #  order_account = Accounts::BaseAccount.new
   #end
-  
+
   #it &quot;should crypt account_number&quot; do
   #  order_account = Accounts::BaseAccount.new
   #end
-  
+
   #it &quot;should get_unencrypted_number&quot; do
   #  order_account = Accounts::BaseAccount.new
   #end
-  
+
   #it &quot;should set unencrypted number&quot; do
   #  order_account = Accounts::BaseAccount.new
   #end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/accounts/abstract_account_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,4 +6,4 @@ describe Mart::Accounts::BankAccount do
 
   it &quot;should have an account number if the account type is a checking account&quot;
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/accounts/bank_account_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,4 +13,4 @@ describe Mart::Accounts::CreditCardAccount do
   it &quot;should have a numeric expiration year&quot;
   it &quot;should have a valid expiration month&quot;
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/accounts/credit_card_account_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,4 +8,4 @@ describe Mart::Accounts::GoogleCheckoutAccount do
     pending
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/accounts/google_checkout_account_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,4 +8,4 @@ describe Mart::Accounts::PaypalAccount do
     pending
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/accounts/paypal_account_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,12 @@
 require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;spec_helper&quot; )
 
 describe Mart::Asset do
-  
+
   it &quot;should provide an extension&quot; do
     @asset = Mart::Asset.new
     @asset.filename = &quot;fish.pdf&quot;
     @asset.extension.should == &quot;pdf&quot;
-    
+
     @asset.filename = &quot;document.html.erb&quot;
     @asset.extension.should == &quot;erb&quot;
     @asset.extension.should_not == &quot;html&quot;
@@ -17,11 +17,11 @@ describe Mart::Asset do
     @asset.filename = &quot;fish.pdf&quot;
     @asset.filename_base.should == &quot;fish&quot;
   end
-  
+
   it &quot;should provide a relative path&quot; do
     @asset = Mart::Asset.new
     @asset.filename = &quot;a_dogs_life.html&quot;
     @asset.relative_path.should == &quot;a_dogs_life.html&quot;
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/asset_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,25 +7,25 @@ describe Mart::Customer do
     before(:each) do
       @customer = Mart::Customer.new
     end
-    
+
     it &quot;should have many (0..*) orders&quot; do
       @customer.should respond_to(:orders)
     end
-    
+
     it &quot;should have many (0..*) addresses&quot; do
       @customer.should respond_to(:addresses)
     end
-    
+
     it &quot;should have many (0..*) accounts&quot; do
       @customer.should respond_to(:accounts)
     end
-    
+
     it &quot;should have many (0..*) wishlist items&quot; do
       @customer.should respond_to(:wishlist_items)
     end
-    
+
     it &quot;should have items&quot; # ??
-  
+
   end
 
   describe &quot;email address&quot; do
@@ -35,32 +35,32 @@ describe Mart::Customer do
       customer.valid?
       customer.errors.on(:email_address).should_not be_nil
     end
-  
+
     it &quot;should require an email address to be less than least 255&quot;
     it &quot;should require an email address to be unique&quot;
     it &quot;should require a valid email address&quot;
-  
+
   end
-  
+
   it &quot;should have an authenticate method&quot;
-  
+
   #it &quot;should generate a random password&quot; do
   #  password = Customer.generate_password
   #  password.should_not be_nil
   #  password.length.should == 8
   #end
-  
+
   #it &quot;should generate a random password of 15 characters&quot; do
   #  password = Customer.generate_password(15)
   #  password.should_not be_nil
   #  password.length.should == 15
   #end
-  
+
   it &quot;should provide the last billing address&quot;
   it &quot;should provide the last shipping address&quot;
   it &quot;should provide the last order account&quot;
 
-  
+
   #it &quot;should have a reset_password method&quot;
   #it &quot;should have an add_item_to_wishlist method&quot;
   #it &quot;should have a remove_item_from_wishlist method&quot;
@@ -69,4 +69,4 @@ describe Mart::Customer do
         it &quot;should have one last order&quot;
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/customer_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ describe Mart::Customers::Cart, &quot;tax calculation&quot; do
     @cart = Mart::Customers::Cart.new
     @cart.tax.should == 0.0
   end
-  
+
   it &quot;should return a valid tax_cost&quot; do
     @cart = Mart::Customers::Cart.new
     # need to use a mock for this
@@ -27,19 +27,19 @@ describe Mart::Customers::Cart, &quot;tax calculation&quot; do
 end
 
 describe Mart::Customers::Cart, &quot;total calculation&quot; do
-  
+
   it &quot;should have a zero total on initialize&quot; do
     @cart = Mart::Customers::Cart.new
     @cart.total.should == 0.0
   end
-  
+
 end
 
 describe Mart::Customers::Cart, &quot;shipping_cost calculation&quot; do
-  
+
   it &quot;should have a zero shipping_cost on initialize&quot; do
     @cart = Mart::Customers::Cart.new
     @cart.shipping_cost.should == 0.0
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>spec/models/mart/customers/cart_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,19 +7,19 @@ describe Mart::Customers::WishlistItem do
   end
 
   describe &quot;associations&quot; do
-    
+
     it &quot;should belong to a customer&quot; do
       @wishlist_item.should respond_to(:customer)
     end
-    
+
     it &quot;should belong to an item&quot; do
       @wishlist_item.should respond_to(:store_item)
     end
-    
+
   end
-  
+
   describe &quot;properties&quot; do
     it &quot;should have a created on date&quot;
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/customers/wishlist_item_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,18 +11,18 @@ describe Mart::Image do
     @image = Mart::Image.new
   end
 
-  it &quot;should have a size&quot; do 
+  it &quot;should have a size&quot; do
     @image.should_not be_valid
     @image.width = 20
     @image.height = 40
     @image.should be_valid
   end
-  
+
   it &quot;should provide an extension&quot; do
     @image.should be_nil
     @image.filename = &quot;fish.jpg&quot;
     @image.extension.should == &quot;jpg&quot;
-    
+
     @image.filename = &quot;document.html.erb&quot;
     @image.extension.should == &quot;erb&quot;
     @image.extension.should_not == &quot;html&quot;
@@ -32,10 +32,10 @@ describe Mart::Image do
     @image.filename = &quot;fish.jpg&quot;
     @image.filename_without_ext.should == &quot;fish&quot;
   end
-  
+
   it &quot;should provide a relative path&quot; do
     @image.filename = &quot;a_dogs_life.gif&quot;
     @image.relative_path.should == &quot;a_dogs_life.gif&quot;
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>spec/models/mart/image_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,29 +16,29 @@ describe Mart::Order do
       @order.should respond_to(:customer)
       @order.should respond_to(:customer=)
     end
-    
+
     it &quot;should have many (1..*) line items&quot; do
       @order.should respond_to(:line_items)
       #@order.should respond_to(:line_items=)
     end
-    
+
     it &quot;should have at least one line item&quot;
-    
+
     it &quot;should have a billing address&quot; do
       @order.should respond_to(:billing_address)
       @order.should respond_to(:billing_address=)
     end
-    
+
     it &quot;should have a shipping address&quot; do
       @order.should respond_to(:shipping_address)
       @order.should respond_to(:shipping_address=)
     end
-    
+
     it &quot;may belong to a promotion&quot; do
       @order.should respond_to(:promotion)
       @order.should respond_to(:promotion=)
     end
-    
+
   end
 
   it &quot;should be valid&quot; do
@@ -47,19 +47,19 @@ describe Mart::Order do
   end
 
   it &quot;should have a total&quot;
-  
+
   describe &quot;class methods&quot; do
-    
+
     it &quot;should return a search result&quot; do
       pending
     end
-    
+
     it &quot;should generate an order number&quot; do
       #Mart::Order.generate_order_number
       Mart::Order.should respond_to(:generate_order_number)
       pending
     end
-    
+
     it &quot;should get totals&quot;
 
     it &quot;should get CSV for orders&quot; do
@@ -73,7 +73,7 @@ describe Mart::Order do
       #@csv = Mart::Order.get_csv_for_orders(order_list)
       pending
     end
-    
+
     it &quot;should get XML for orders&quot; do
       order1 = Mart::Order.new
       order2 = Mart::Order.new
@@ -84,13 +84,13 @@ describe Mart::Order do
       #@xml = Mart::Order.get_xml_for_orders(order_list)
       pending
     end
-    
-    it &quot;should get order status&quot;    
-    
+
+    it &quot;should get order status&quot;
+
   end
-  
+
   it &quot;should assign line items from a hash&quot;
-  
+
   it &quot;should get the total amount of all line items associated with this order&quot;
 
   it &quot;should test weight&quot;
@@ -100,16 +100,16 @@ describe Mart::Order do
   it &quot;should work for a valid transaction&quot;
   it &quot;should not work for an invalid transaction&quot;
 
-  #it &quot;should clean up&quot; 
+  #it &quot;should clean up&quot;
   #it &quot;should not cleanup&quot;
 
 
   it &quot;should have a shipping type&quot;
-  
+
   it &quot;should have a order status code&quot;
-  
+
   it &quot;should belong to a promotion&quot;
 
   it &quot;should have a unique order number&quot;
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/order_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,13 +2,13 @@ require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;..&quot;, &quot;spec_helper&quot; )
 
 describe Mart::Orders::LineItem do
 
-  describe &quot;associations&quot; do    
+  describe &quot;associations&quot; do
     it &quot;should belong to a product&quot; do
       line_item = Mart::Orders::LineItem.new
       line_item.should respond_to(:product)
       line_item.should respond_to(:product=)
     end
-    
+
     it &quot;should belong to an order item&quot; do
       line_item = Mart::Orders::LineItem.new
       pending   ## FIXME: should not be both product_id + store_item_id
@@ -23,4 +23,4 @@ describe Mart::Orders::LineItem do
   it &quot;should provide a code&quot;
   it &quot;should provide a name&quot;
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/orders/line_item_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,8 +8,8 @@ describe Mart::Orders::StatusCode do
       status_code.should respond_to(:orders)
     end
   end
-  
-  it &quot;should know if it the order can be edited or not, based on 
+
+  it &quot;should know if it the order can be edited or not, based on
   status code&quot; do
     osc = Mart::Orders::StatusCode.new(:id =&gt; 1)
     #osc.is_editable?.should == false
@@ -17,4 +17,4 @@ describe Mart::Orders::StatusCode do
     #osc2.is_editable?.should == true
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/orders/status_code_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,9 +17,9 @@ describe Mart::Shipping::Type do
   #  shipping_types.should_not be_nil
     # test the result set
   #end
-  
+
   it &quot;should get price&quot;
-  
+
   #it &quot;should calculate a price for a weight&quot; do
   #  shipping_type = Mart::Shipping::Type.new
   #  shipping_type.price = 86.23
@@ -27,7 +27,7 @@ describe Mart::Shipping::Type do
     # if no weights are set, then it should return the same price
   #  shipping_type.calculated_price.should == 86.23
   #end
-  
+
   #it &quot;should allow weight variations to be set from a list&quot; do
   #  shipping_type = Mart::Shipping::Type.new
   #  weights = [20.1, 56.32, 123.2, 93.12, 1022.0]
@@ -37,4 +37,4 @@ describe Mart::Shipping::Type do
     # what is it returning? A OrderShippingWeight class.
   #end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/shipping/type_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,4 +13,4 @@ describe Mart::Shipping::Weight do
   it &quot;should have a max weight&quot;
   it &quot;should have a price&quot;
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/shipping/weight_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,12 @@
 require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;..&quot;, &quot;spec_helper&quot; )
 
 describe Mart::Store::AbstractItem do
-  
+
   it &quot;should require a name&quot;
   it &quot;should require a code&quot;
-  
+
   it &quot;should have a unique code&quot;
 
   it &quot;should provide a suggestion_name&quot;
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/store/abstract_item_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,11 +7,11 @@ describe Mart::Store::ProductImage do
       product_image = Mart::Store::ProductImage.new
       product_image.should respond_to(:product)
     end
-    
+
     it &quot;should belong to an image&quot; do
       product_image = Mart::Store::ProductImage.new
       product_image.should respond_to(:image)
     end
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/store/product_image_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,21 +12,21 @@ describe Mart::Store::Product do
     @product.date_available = DateTime.now
     @product.should be_valid
   end
-  
+
   it &quot;should have a date available automatically assigned to it&quot; do
     pending
   end
 
   describe &quot;associations&quot; do
-    
+
     it &quot;should have 0..n order line items&quot; do
       @product.should respond_to(:line_items)
     end
-    
+
     it &quot;should have 0..n wishlist items&quot; do
       @product.should respond_to(:wishlist_items)
     end
-    
+
     it &quot;should have 0..n variations&quot; do
       @product.should respond_to(:variations)
     end
@@ -34,28 +34,28 @@ describe Mart::Store::Product do
     it &quot;should have many product images&quot; do
       @product.should respond_to(:product_images)
     end
-       
+
     it &quot;should have images&quot; do
       pending
     end
-  
+
     it &quot;should have related products&quot;
-    
+
     it &quot;should have and belong to many tags&quot; do
       pending
     end
   end
-  
+
   it &quot;should have a search method&quot;
   it &quot;should have a find_by_tags method&quot;
-  
+
   it &quot;should provide a list of tags&quot;
 
   it &quot;should provide a display price&quot;
   it &quot;should provide a quantity&quot;
   it &quot;should provide a is_published&quot;
   it &quot;should provide a is_on_sale&quot;
-  
+
   it &quot;should allow related_product_ids to be set from a list&quot;
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/store/product_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,13 +7,13 @@ describe Mart::Store::Promotion do
       promotion = Mart::Store::Promotion.new
       promotion.should respond_to(:item)
     end
-  
+
     it &quot;should have 0..* orders&quot; do
       promotion = Mart::Store::Promotion.new
       promotion.should respond_to(:orders)
     end
   end
-  
+
   it &quot;should require a code&quot;
   it &quot;should require a discount amount&quot;
   it &quot;should require a discount type&quot;
@@ -28,4 +28,4 @@ describe Mart::Store::Promotion do
   it &quot;should provide whether it is active or not&quot;
   it &quot;should provide a product_name setter&quot;
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/store/promotion_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ describe Mart::Store::Variation do
   end
 
   describe &quot;associations&quot; do
-    
+
     it &quot;should belong to a product&quot; do
       @variation.should respond_to(:product)
     end
@@ -15,14 +15,14 @@ describe Mart::Store::Variation do
     it &quot;should have 0..* order line items&quot; do
       @variation.should respond_to(:line_items)
     end
-    
+
     it &quot;should have 0..* wishlist items&quot; do
       @variation.should respond_to(:wishlist_items)
     end
-    
+
   end
-  
+
   it &quot;should provide images&quot;
   it &quot;should provide a name&quot;
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/mart/store/variation_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,4 +10,4 @@ describe Right do
     end
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/right_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,16 +9,16 @@ describe Role do
       #role.should respond_to(:users)
       #role.should respond_to(:users=)
     end
-    
+
     it &quot;should have and belong to many rights&quot; do
       role = Role.new
       #role.should respond_to(:rights)
-      #role.should respond_to(:rights=)      
+      #role.should respond_to(:rights=)
     end
   end
-  
+
   it &quot;should allow rights to be set by a list of right ids&quot; do
     pending
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/role_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;spec_helper&quot; )
 
 describe State do
-  
+
   describe &quot;associations&quot; do
     it &quot;should belong to a country&quot; do
       state = State.new
@@ -10,33 +10,33 @@ describe State do
       state.should respond_to(:country_code)
     end
   end
-  
+
   before(:each) do
     State.auto_migrate!  # clear db table
   end
-  
+
   it &quot;should have a composite key, made up of ISO 3166-1 alpha-2 country code
       and state abbreviation&quot; do
     maine  = State.new(:country_code =&gt; &quot;US&quot;, :abbr =&gt; &quot;ME&quot;, :name =&gt; &quot;Maine&quot;)
     alaska = State.new(:country_code =&gt; &quot;US&quot;, :abbr =&gt; &quot;AK&quot;, :name =&gt; &quot;Alaska&quot;)
     bremen = State.new(:country_code =&gt; &quot;DE&quot;, :abbr =&gt; &quot;HB&quot;, :name =&gt; &quot;Bremen&quot;)
-    
+
     maine.save
     alaska.save
     bremen.save
-    
+
     #State[&quot;US&quot;, &quot;AK&quot;]  ## FIXME
     alaska = State.get(&quot;US&quot;, &quot;AK&quot;)
     alaska.should_not be_nil
     alaska.key.first.should == &quot;US&quot;
     alaska.key.last.should == &quot;AK&quot;
     alaska.name.should == &quot;Alaska&quot;
-    
+
     #bremen = State[&quot;DE&quot;, &quot;HB&quot;]  ## FIXME
     bremen = State.get(&quot;DE&quot;, &quot;HB&quot;)
     bremen.should_not be_nil
     bremen.key.should == [&quot;DE&quot;, &quot;HB&quot;]
     bremen.name.should == &quot;Bremen&quot;
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>spec/models/state_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;spec_helper&quot; )
 describe Tag do
 
   describe &quot;finders&quot; do
-    
+
     before(:each) do
       tag1 = Tag.new(:name =&gt; 'umbrellas')
       tag2 = Tag.new(:name =&gt; 'sunscreen')
@@ -18,15 +18,15 @@ describe Tag do
     it &quot;should find all tags ordered by name&quot; do
       Tag.all_ordered.should_not be_nil
     end
-  
+
     #it &quot;should find ordered parents&quot; do
     #  Tag.all_parents.should_not be_nil
     #end
-  
+
     it &quot;should find related tags&quot; do
       #Tag.find_related_tags(id_list)
     end
-  
+
     #it &quot;should provide a product count&quot; do
     #  tag = Tag.all
     #  tag.product_count.should_not be_nil
@@ -34,4 +34,4 @@ describe Tag do
 
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>spec/models/tag_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ require File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;authenticated_system_spec_help
 
 describe User do
   include UserSpecHelper
-  
+
   before(:each) do
     User.clear_database_table
     UserMailer.stub!(:activation_notification).and_return(true)
@@ -16,14 +16,14 @@ describe User do
     user.valid?
     user.errors.on(:login).should_not be_nil
   end
-  
+
   it &quot;should fail login if there are less than 3 chars&quot; do
     user = User.new
     user.login = &quot;AB&quot;
     user.valid?
     user.errors.on(:login).should_not be_nil
   end
-  
+
   it &quot;should not fail login with between 3 and 40 chars&quot; do
     user = User.new
     [3,40].each do |num|
@@ -32,21 +32,21 @@ describe User do
       user.errors.on(:login).should be_nil
     end
   end
-  
+
   it &quot;should fail login with over 90 chars&quot; do
     user = User.new
     user.login = &quot;A&quot; * 41
     user.valid?
-    user.errors.on(:login).should_not be_nil    
+    user.errors.on(:login).should_not be_nil
   end
-  
+
   it &quot;should make a valid user&quot; do
     user = User.new(valid_user_hash)
     user.save
     user.errors.should be_empty
-    
+
   end
-  
+
   it &quot;should make sure login is unique&quot; do
     user = User.new( valid_user_hash.with(:login =&gt; &quot;Daniel&quot;) )
     user2 = User.new( valid_user_hash.with(:login =&gt; &quot;Daniel&quot;))
@@ -55,7 +55,7 @@ describe User do
     user2.save.should be_false
     user2.errors.on(:login).should_not be_nil
   end
-  
+
   it &quot;should make sure login is unique regardless of case&quot; do
     User.first(:login =&gt; &quot;Daniel&quot;).should be_nil
     user = User.new( valid_user_hash.with(:login =&gt; &quot;Daniel&quot;) )
@@ -65,39 +65,39 @@ describe User do
     user2.save.should be_false
     user2.errors.on(:login).should_not be_nil
   end
-  
+
   it &quot;should downcase logins&quot; do
     user = User.new( valid_user_hash.with(:login =&gt; &quot;DaNieL&quot;))
-    user.login.should == &quot;daniel&quot;    
-  end  
-  
+    user.login.should == &quot;daniel&quot;
+  end
+
   it &quot;should authenticate a user using a class method&quot; do
     user = User.new(valid_user_hash)
     user.save
     user.activate
     User.authenticate(valid_user_hash[:login], valid_user_hash[:password]).should_not be_nil
   end
-  
+
   it &quot;should not authenticate a user using the wrong password&quot; do
-    user = User.new(valid_user_hash)  
+    user = User.new(valid_user_hash)
     user.save
-  
+
     user.activate
     User.authenticate(valid_user_hash[:login], &quot;not_the_password&quot;).should be_nil
   end
-  
+
   it &quot;should not authenticate a user using the wrong login&quot; do
-    user = User.create(valid_user_hash)  
-  
+    user = User.create(valid_user_hash)
+
     user.activate
     User.authenticate(&quot;not_the_login&quot;, valid_user_hash[:password]).should be_nil
   end
-  
+
   it &quot;should not authenticate a user that does not exist&quot; do
     User.authenticate(&quot;i_dont_exist&quot;, &quot;password&quot;).should be_nil
   end
-  
- 
+
+
   it &quot;should send a please activate email&quot; do
     user = User.new(valid_user_hash)
     UserMailer.should_receive(:dispatch_and_deliver) do |action, mail_args, mailer_params|
@@ -108,42 +108,42 @@ describe User do
     end
     user.save
   end
-  
+
   it &quot;should not send a please activate email when updating&quot; do
     user = User.new(valid_user_hash)
     user.save
     UserMailer.should_not_receive(:signup_notification)
     user.login = &quot;not in the valid hash for login&quot;
-    user.save    
+    user.save
   end
-  
+
 end
 
 describe User, &quot;the password fields for User&quot; do
   include UserSpecHelper
-  
+
   before(:each) do
     User.clear_database_table
     @user = User.new( valid_user_hash )
     UserMailer.stub!(:activation_notification).and_return(true)
   end
-  
+
   it &quot;should respond to password&quot; do
-    @user.should respond_to(:password)    
+    @user.should respond_to(:password)
   end
-  
+
   it &quot;should respond to password_confirmation&quot; do
     @user.should respond_to(:password_confirmation)
   end
-  
+
   #it &quot;should have a protected password_required method&quot; do
   #  @user.protected_methods.should include(&quot;password_required?&quot;)
   #end
-  
+
   it &quot;should respond to crypted_password&quot; do
-    @user.should respond_to(:crypted_password)    
+    @user.should respond_to(:crypted_password)
   end
-  
+
   it &quot;should require password if password is required&quot; do
     user = User.new( valid_user_hash.without(:password))
     user.stub!(:password_required?).and_return(true)
@@ -151,27 +151,27 @@ describe User, &quot;the password fields for User&quot; do
     user.errors.on(:password).should_not be_nil
     user.errors.on(:password).should_not be_empty
   end
-  
+
   it &quot;should set the salt&quot; do
     user = User.new(valid_user_hash)
     user.salt.should be_nil
     user.send(:encrypt_password)
-    user.salt.should_not be_nil    
+    user.salt.should_not be_nil
   end
-  
+
   it &quot;should require the password on create&quot; do
     user = User.new(valid_user_hash.without(:password))
     user.save
     user.errors.on(:password).should_not be_nil
     user.errors.on(:password).should_not be_empty
-  end  
-  
+  end
+
   it &quot;should require password_confirmation if the password_required?&quot; do
     user = User.new(valid_user_hash.without(:password_confirmation))
     user.save
     (user.errors.on(:password) || user.errors.on(:password_confirmation)).should_not be_nil
   end
-  
+
   it &quot;should fail when password is outside 4 and 40 chars&quot; do
     [3,41].each do |num|
       user = User.new(valid_user_hash.with(:password =&gt; (&quot;a&quot; * num)))
@@ -179,21 +179,21 @@ describe User, &quot;the password fields for User&quot; do
       user.errors.on(:password).should_not be_nil
     end
   end
-  
+
   it &quot;should pass when password is within 4 and 40 chars&quot; do
     [4,30,40].each do |num|
       user = User.new(valid_user_hash.with(:password =&gt; (&quot;a&quot; * num), :password_confirmation =&gt; (&quot;a&quot; * num)))
       user.valid?
       user.errors.on(:password).should be_nil
-    end    
+    end
   end
-  
+
   it &quot;should authenticate against a password&quot; do
     user = User.new(valid_user_hash)
-    user.save    
+    user.save
     user.should be_authenticated(valid_user_hash[:password])
   end
-  
+
   it &quot;should not require a password when saving an existing user&quot; do
     user = User.create(valid_user_hash)
     user = User.first(:login =&gt; valid_user_hash[:login])
@@ -202,38 +202,38 @@ describe User, &quot;the password fields for User&quot; do
     user.login = &quot;some_different_login_to_allow_saving&quot;
     (user.save).should be_true
   end
-  
+
 end
 
 describe User, &quot;activation&quot; do
   include UserSpecHelper
-  
-  
+
+
   before(:each) do
     User.clear_database_table
     @user = User.new(valid_user_hash)
   end
-  
+
   it &quot;should have an activation_code as an attribute&quot; do
     @user.attributes.keys.any?{|a| a.to_s == &quot;activation_code&quot;}.should_not be_nil
   end
-  
+
   it &quot;should create an activation code on create&quot; do
-    @user.activation_code.should be_nil    
+    @user.activation_code.should be_nil
     @user.save
     @user.activation_code.should_not be_nil
   end
-  
+
   it &quot;should not be active when created&quot; do
     @user.should_not be_activated
     @user.save
-    @user.should_not be_activated    
+    @user.should_not be_activated
   end
-  
+
   it &quot;should respond to activate&quot; do
-    @user.should respond_to(:activate)    
+    @user.should respond_to(:activate)
   end
-  
+
   it &quot;should activate a user when activate is called&quot; do
     @user.should_not be_activated
     @user.save
@@ -242,20 +242,20 @@ describe User, &quot;activation&quot; do
     ## FIXME
     #User.first(:login =&gt; valid_user_hash[:login]).should be_activated
   end
-  
+
   it &quot;should should show recently activated when the instance is activated&quot; do
     @user.should_not be_recently_activated
     @user.activate
     @user.should be_recently_activated
   end
-  
+
   it &quot;should not show recently activated when the instance is fresh&quot; do
     @user.activate
     @user = nil
     ## FIXME
     #User.first(:login =&gt; valid_user_hash[:login]).should_not be_recently_activated
   end
-  
+
   it &quot;should send out a welcome email to confirm that the account is activated&quot; do
     @user.save
     UserMailer.should_receive(:dispatch_and_deliver) do |action, mail_args, mailer_params|
@@ -268,38 +268,38 @@ describe User, &quot;activation&quot; do
     end
     @user.activate
   end
-  
+
 end
 
 describe User, &quot;remember_me&quot; do
   include UserSpecHelper
-  
+
   predicate_matchers[:remember_token] = :remember_token?
-  
+
   before do
     User.clear_database_table
     @user = User.new(valid_user_hash)
   end
-  
+
   it &quot;should have a remember_token_expires_at attribute&quot; do
     @user.attributes.keys.any?{|a| a.to_s == &quot;remember_token_expires_at&quot;}.should_not be_nil
-  end  
-  
+  end
+
   it &quot;should respond to remember_token?&quot; do
     @user.should respond_to(:remember_token?)
   end
-  
+
   it &quot;should return true if remember_token_expires_at is set and is in the future&quot; do
     @user.remember_token_expires_at = DateTime.now + 3600
-    @user.should remember_token    
+    @user.should remember_token
   end
-  
+
   it &quot;should set remember_token_expires_at to a specific date&quot; do
     time = DateTime.new(2009, 12, 25)
     @user.remember_me_until(time)
-    @user.remember_token_expires_at.should == time    
+    @user.remember_token_expires_at.should == time
   end
-  
+
   it &quot;should set the remember_me token when remembering&quot; do
     time = Time.mktime(2009,12,25)
     @user.remember_me_until(time)
@@ -307,7 +307,7 @@ describe User, &quot;remember_me&quot; do
     @user.save.should
     User.first(:login =&gt; valid_user_hash[:login]).remember_token.should_not be_nil
   end
-  
+
   it &quot;should remember me for&quot; do
     t = DateTime.now
     DateTime.stub!(:now).and_return(t)
@@ -316,34 +316,34 @@ describe User, &quot;remember_me&quot; do
     @user.remember_me_for( Merb::Const::WEEK * 2)
     @user.remember_token_expires_at.should == (remember_until)
   end
-  
+
   it &quot;should remember_me for two weeks&quot; do
     t = DateTime.now
     DateTime.stub!(:now).and_return(t)
     @user.remember_me
     @user.remember_token_expires_at.should == (DateTime.now + (2 * Merb::Const::WEEK ))
   end
-  
+
   it &quot;should forget me&quot; do
     @user.remember_me
     @user.save
     @user.forget_me
     @user.remember_token.should be_nil
-    @user.remember_token_expires_at.should be_nil    
+    @user.remember_token_expires_at.should be_nil
   end
-  
+
   it &quot;should persist the forget me to the database&quot; do
     @user.remember_me
     @user.save
-    
+
     @user = User.first(:login =&gt; valid_user_hash[:login])
     @user.remember_token.should_not be_nil
-    
+
     @user.forget_me
 
     @user = User.first(:login =&gt; valid_user_hash[:login])
     @user.remember_token.should be_nil
     @user.remember_token_expires_at.should be_nil
   end
-  
-end
\ No newline at end of file
+
+end</diff>
      <filename>spec/models/user_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@ module UserSpecHelper
       :password               =&gt; &quot;sekret&quot;,
       :password_confirmation  =&gt; &quot;sekret&quot;}
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/user_spec_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,22 +1,22 @@
 require File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, 'spec_helper.rb')
 
-describe &quot;controller/index&quot; do 
- 
-  before( :each ) do 
-    @store = Store.new(fake_request) 
-    #@controller.instance_variable_set(:@posts, [Post.new(:id =&gt; 1, :body =&gt; &quot;Merb!&quot;)])  
-    @body = @store.render(:index) 
-  end 
- 
-  it &quot;should have something&quot; do 
-    #@body.should have_tag(:div, :class =&gt; :posts).with_tag(:div, :class =&gt; :post) 
-  end 
- 
-  it &quot;should wrap the body paragraph in a div with class 'post' and the post's id&quot; do 
-    #@body.should have_tag(:div, :class =&gt; :post, :id =&gt; @post.id).with_tag(:p, :class =&gt; :body) 
-  end 
- 
-  it &quot;should render the body body within a post div&quot; do 
-    #@body.should have_tag(:div,:id =&gt; @post.id).with_tag(:p) {|p| p.should contain(@post.body)} 
-  end 
-end
\ No newline at end of file
+describe &quot;controller/index&quot; do
+
+  before( :each ) do
+    @store = Store.new(fake_request)
+    #@controller.instance_variable_set(:@posts, [Post.new(:id =&gt; 1, :body =&gt; &quot;Merb!&quot;)])
+    @body = @store.render(:index)
+  end
+
+  it &quot;should have something&quot; do
+    #@body.should have_tag(:div, :class =&gt; :posts).with_tag(:div, :class =&gt; :post)
+  end
+
+  it &quot;should wrap the body paragraph in a div with class 'post' and the post's id&quot; do
+    #@body.should have_tag(:div, :class =&gt; :post, :id =&gt; @post.id).with_tag(:p, :class =&gt; :body)
+  end
+
+  it &quot;should render the body body within a post div&quot; do
+    #@body.should have_tag(:div,:id =&gt; @post.id).with_tag(:p) {|p| p.should contain(@post.body)}
+  end
+end</diff>
      <filename>spec/views/store/index_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>37f3b639f05213d2459ee54a826481d415ac5e00</id>
    </parent>
  </parents>
  <author>
    <name>Alex Coles</name>
    <email>alexbcoles@mac.com</email>
  </author>
  <url>http://github.com/myabc/merb_mart/commit/1d63179ef1086e3d6ef6aeaa8b7456100beec2ce</url>
  <id>1d63179ef1086e3d6ef6aeaa8b7456100beec2ce</id>
  <committed-date>2008-05-16T01:57:01-07:00</committed-date>
  <authored-date>2008-05-16T01:57:01-07:00</authored-date>
  <message>Whitespace cleanup</message>
  <tree>1b4dc274477c6a691399122f0391da1522948f74</tree>
  <committer>
    <name>Alex Coles</name>
    <email>alexbcoles@mac.com</email>
  </committer>
</commit>
