Created
June 13, 2017 17:50
-
-
Save alex-min/8c55a1dc441f67d1b3ea8add6ba8f736 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.feature 'Post react component test' do | |
before(:each) do | |
post_json(render_component_path, { | |
component: 'Post', | |
props: { title: title } | |
}.to_json) | |
end | |
context 'with a title' do | |
let(:title) { 'Hello World' } | |
expect(find('.title').text).to eq('Hello World') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment