Skip to content

Conversation

@Prakriti-nith
Copy link
Contributor

@Prakriti-nith Prakriti-nith commented Feb 27, 2018

Partial fix for the issue #67
Added more tests in plot_spec.rb

context 'Googlecharts library' do
before { Daru::View.plotting_library = :googlecharts }
let(:lib) { Daru::View.plotting_library }
let(:options) {{width: 800, height: 720}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{width: 800, height: 720}} -> {width: 800, height: 720}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried doing it, but am getting the following Syntax error: syntax error, unexpected ':', expecting '}' let(:options) {width: 800, height: 720}
and as mentioned here: https://stackoverflow.com/questions/21336438/using-a-hash-inside-a-let, double brackets should be used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! it's correct, since we are using let.

@Shekharrajak
Copy link
Member

Please refer the issue in your PR. It will be easy to find all the related changes for particular issue.

@Shekharrajak Shekharrajak merged commit a1eab07 into SciRuby:master Mar 1, 2018
@Prakriti-nith Prakriti-nith deleted the plot_spec branch May 29, 2018 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants