Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8771757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:52:13+00:00 2026-06-13T17:52:13+00:00

An Rspec test like this (actually taken from RefineryCMS’ own test suite) require File.expand_path(File.dirname(__FILE__)

  • 0

An Rspec test like this (actually taken from RefineryCMS’ own test suite)

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

module Refinery
  describe FastController do
    it "should render the wymiframe template" do
      get :wymiframe
      response.should be_success
    end
  end
end

Results in the following error:

Failure/Error: get :wymiframe
ActionController::RoutingError:
  No route matches {:controller=>"refinery/fast", :action=>"wymiframe"}
# ./spec/controllers/fast_controller_spec.rb:6:in `block (2 levels) in <module:Refinery>'

In this case, I’m using refinery 2.0.8 with Rspec 2.11, and the relevant section after running rake routes looks like:

wymiframe GET     /wymiframe(/:id)(.:format)        refinery/fast#wymiframe

I have tried a few other controller Rspecs which also fail with routing errors. I am of course trying to write tests for my own extra methods I am adding to vanilla Refinery controllers, but just thought I’d see if I could get a controller test working for a totally fresh refinery install.

This must be a simple mistake! Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:52:15+00:00Added an answer on June 13, 2026 at 5:52 pm

    I stumbled upon this by accident. Instead of:

    get :wymiframe
    

    I needed to use:

    get :wymiframe, { use_route: :any_old_thing }
    

    I don’t know why this worked – especially since for “any_old_thing”, I really used nothing meaninful or connected tomy project at all. But, it seems to have worked, and now I can test my controllers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an rspec test which looks something like this: require 'require_all' require_rel '../spec_helper'
Is it somehow possible to test warnings i Ruby using RSpec? Like this: class
When testing a JSON response from an RSPEC controller test using DHH's JBuilder, my
I'd like to start debugger in methods during rspec test. I know, I can
I generally write something like this in my Rspec tests: user.new(...) user.should be_valid The
If I have rspec test like following: context main context do before(:all) do #
I have this RSpec test - it passes correctly: it should have the right
I am trying an rspec test where the example looks like so: it cannot
So I have something like this in Rails with rspec: it should create a
I'm having problems getting this simple test to pass on RSpec 2.8. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.