Sha256: c66bcbc885b802bd27c6950d538a13b1939ff26c5e0cd57e2ebb00ad4804fade

Contents?: true

Size: 394 Bytes

Versions: 8

Compression:

Stored size: 394 Bytes

Contents

require "spec_helper"

describe "Lolita I18n routes", :rails => true do 
  it "has route for update with key" do 
    {:put => "/lolita/i18n/my_id"}.should route_to(:controller => "lolita/i18n", :action => "update", :id => "my_id")
  end

  it "has route for list of all translations" do 
    {:get => "/lolita/i18n"}.should route_to(:controller => "lolita/i18n", :action => "index")
  end
end 

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lolita-i18n-0.5.6 spec/routing/routes_spec.rb
lolita-i18n-0.5.5 spec/routing/routes_spec.rb
lolita-i18n-0.5.3 spec/routing/routes_spec.rb
lolita-i18n-0.5.2 spec/routing/routes_spec.rb
lolita-i18n-0.5.1 spec/routing/routes_spec.rb
lolita-i18n-0.4.3 spec/routing/routes_spec.rb
lolita-i18n-0.4.2 spec/routing/routes_spec.rb
lolita-i18n-0.4.0 spec/routing/routes_spec.rb