Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined method errors #68

Closed
wants to merge 1 commit into from
Closed

Fix undefined method errors #68

wants to merge 1 commit into from

Conversation

nifuramu
Copy link

Fix undefined method error when example_block_node is nil

@yujinakayama
Copy link
Owner

Thanks for the pull request. However I think this is not a fundamental solution. Could you provide a reproducible example code?

@nifuramu
Copy link
Author

hi
I examined the cause, and I thought this was not a fundamental solution,too.

my bad spec example

describe ModelA do
  before { @model_a = ModelA.new }
  subject { @model_a }

  it { should respond_to(:id) }
  it { should respond_to(:has_many_models) }

  describe "relation" do
    let(:model_b) { FactoryGirl.create :model_b }
    before do
      model_b.relation(@model_a)
    end
    its(:has_many_models) { should have(1).items } # error here
  end
end

@yujinakayama
Copy link
Owner

Thanks. I'll take a look.

@yujinakayama
Copy link
Owner

Released 2.2.3 with the fix.

@nifuramu
Copy link
Author

thanks!!!

@nifuramu nifuramu deleted the fix-some-errors branch June 12, 2014 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants